Skip to content

API response for label returns empty 'url' field #8028

Closed
@bobemoe

Description

@bobemoe
  • Gitea version (or commit ref): 1.10.0+dev-230-g187ae109d
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

When fetching or creating a label, the url field in the json response is blank:

https://try.gitea.io/api/v1/repos/bobemoe/test/issues/1/labels

[
  {
    "id": 4150,
    "name": "bug",
    "color": "ee0701",
    "description": "Something is not working",
    "url": ""
  }
]

Expected that it will return the API url for editing the label, same as it does for an issue:

https://try.gitea.io/api/v1/repos/bobemoe/test/issues/1

{
  "id": 5668,
  "url": "https://try.gitea.io/api/v1/repos/bobemoe/test/issues/1",
  "number": 1,
  "user": {
    "id": 16866,
    "login": "bobemoe",
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedmodifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions