Closed
Description
- Gitea version (or commit ref): 1.13.0+dev-642-gd8b5235de
- Operating system: linux
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes https://try.gitea.io/api/v1/repos/idrinth/config-check/tags
- No
- Not relevant
Description
Currently the api returns a timestamp for a branch's commit, but no commit timestamp for a tag. This seems inconsistent and makes it unecessarily complicated to find out when something was tagged.
I would expect a structure similar to the following:
[
{
"name":"test4issue",
"id":"fea22d6f670b52cab0685fb531877ecb552d4efb",
"commit":{
"url":"https://try.gitea.io/api/v1/repos/Idrinth/config-check/git/commits/fea22d6f670b52cab0685fb531877ecb552d4efb",
"sha":"fea22d6f670b52cab0685fb531877ecb552d4efb",
"timestamp": "2020-09-08T18:46:47+02:00"
},
"zipball_url":"https://try.gitea.io/Idrinth/config-check/archive/test4issue.zip",
"tarball_url":"https://try.gitea.io/Idrinth/config-check/archive/test4issue.tar.gz"
}
]