Skip to content

[API] Issues are missing HTMLURL, IssueURL, and PRURL #401

Closed
@rymai

Description

@rymai
  • Gitea version (or commit ref):
    func (c *Comment) APIFormat() *api.Comment {
    return &api.Comment{
    ID: c.ID,
    Poster: c.Poster.APIFormat(),
    Body: c.Content,
    Created: c.Created,
    Updated: c.Updated,
    }
    }

Description

As of 8aeeed0, the Issue model doesn't expose HTMLURL, IssueURL, and PRURL in the ApiFormat function:

func (c *Comment) APIFormat() *api.Comment {
return &api.Comment{
ID: c.ID,
Poster: c.Poster.APIFormat(),
Body: c.Content,
Created: c.Created,
Updated: c.Updated,
}
}
but the Go SDK already expect those fields: https://github.com/go-gitea/go-sdk/blob/master/gitea/issue_comment.go#L15-L24

gogs/gogs#3624 has been submitted on Gogs but should be submitted on Gitea now.

Thanks in advance, it will help us having a more useful Gitea importer for GitLab (https://gitlab.com/gitlab-org/gitlab-ce/issues/22348).

/cc @bkcsoft

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions