diff options
author | Alberto González Palomo <bugs@sentido-labs.com> | 2018-01-04 02:41:33 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-01-03 19:41:33 -0600 |
commit | 30fb81c71ef8d452746194b4d9187424f6d11d81 (patch) | |
tree | 2984d3ac6cde9ca5c26c85c27b4c2ca5ccdbc67f /.gitattributes | |
parent | 9f8349af063ab0d35b65b1c4246799f023b68e7f (diff) | |
download | gitea-30fb81c71ef8d452746194b4d9187424f6d11d81.tar.gz gitea-30fb81c71ef8d452746194b4d9187424f6d11d81.zip |
Use issue number/index instead of id for API URL. (#3298)
Using the API calls, the issue objects retrieved by
/repos/{owner}/{repo}/issues
contains the wrong value in the "url" field:
it uses the "id" value instead of the "number" value.
For instance, in a new repo in try.gitea.io with just one issue:
[{
"id": 896,
"url": "https://try.gitea.io/api/v1/repos/AlbertoGP/uno/issues/896",
"number": 1,
...
}]
The given URL does not work, but if you replace the "896" by "1" it
does.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions