-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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/v1/repos/stephenc/repo/tags endpoint not returning lightweight tags correctly #7238
Comments
* Fixes #2738 - /git/tags API * proper URLs * Adds function comments * Updates swagger * Removes newline from tag message * Removes trailing newline from commit message * Adds integration test * Removed debugging * Adds tests * Fixes bug where multiple tags of same commit show wrong tag name * Fix formatting * Removes unused varaible * Fix to annotated tag function names and response * Update modules/git/repo_tag.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Uses TagPrefix * Changes per review, better error handling for getting tag and commit IDs * Fix to getting commit ID * Fix to getting commit ID * Fix to getting commit ID * Fix to getting commit ID
@richmahn could you have time to take a look at this issue? |
@lunny Just saw the notification for it. Yes, will look. |
@stephenc Looking into this. Shouldn't the SHA of the commit of the annotated tag be "05958747e4a781e67f1ebd3248ddfba9d1846b40" like both SHAs of the lightweight? That is, the commit SHA should be different than the tag SHA. I thought I had that working, but appears not. Thanks for finding that. |
Yes the sha should be the same, The id perhaps not |
* Fixes go-gitea#7238 - Annotated tag commit ID incorrect * Fixes go-gitea#7238 - Annotated tag commit ID incorrect
* Fixes go-gitea#7238 - Annotated tag commit ID incorrect * Fixes go-gitea#7238 - Annotated tag commit ID incorrect
[x]
):Description
The api/v1/repos/stephenc/repo/tags endpoint is not returning the lightweight tags correctly. See 8de0b0a#commitcomment-33968832
I have pushed the git repo and tags to try.gitea.io.
Here is the lightweight tag which resolves to a commit directly:
Here is the annotated tag which resolves to a tag object
Here is the current result at https://try.gitea.io/api/v1/repos/stephenc/repo/tags:
Expected result:
Screenshots
The text was updated successfully, but these errors were encountered: