Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 3 tasks
bobemoe opened this issue Aug 29, 2019 · 3 comments · Fixed by #16186
Closed
1 of 3 tasks

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

bobemoe opened this issue Aug 29, 2019 · 3 comments · Fixed by #16186
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/bug

Comments

@bobemoe
Copy link
Contributor

bobemoe commented Aug 29, 2019

  • 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",
...
@lunny lunny added modifies/api This PR adds API routes or modifies them type/bug labels Aug 29, 2019
@shashvat-kedia
Copy link
Contributor

@lunny Can I work on this?

@techknowlogick
Copy link
Member

@SD1998 sure

@stale
Copy link

stale bot commented Dec 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale stale bot added the issue/stale label Dec 9, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Dec 12, 2019
@stale stale bot removed the issue/stale label Dec 12, 2019
6543 added a commit to 6543-forks/gitea that referenced this issue Jun 17, 2021
6543 added a commit that referenced this issue Sep 10, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants