You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to ability to List tags, which shows tag's name and commit details, let's have Create tag, to have better feature parity with industry standard.
Describe the solution you'd like
New API endpoint POST /api/v1/repos/{owner}/{repo}/tags with payload of tag's name and commit's hash.
Describe alternatives you've considered
Using internal API that's built-into UI.
Additional context
Implement new endpoint
Implement success tests (happy route)
Implement failure tests (4xx expected errors)
Update docs API refference
Code of Conduct
I agree to follow this project's Code of Conduct
Reacted by Matej Bačo, Harsh Mahajan, Levi van Noort, Simon Moses Onazi, Aishwari Pahwa, Chirag Aggarwal, premtsd-code, ArnabChatterjee20k, Jayesh somani, Chen Parnasa and 5 more
This is implemented in #8566: POST /repos/{owner}/{repo}/tags with {"name": "...", "target": "..."}, where target is a branch, tag or commit SHA and defaults to the default branch. It creates a lightweight tag and will ship in 0.15. Thanks @Meldiron for the original proposal in #8212, you are credited as a co-author.
Activity
Meldiron commentedon Mar 24, 2026
I have contributed a pull request to address this issue: #8212
Tests are passing, and I am available to address any comments 🙌
unknwon commentedon Nov 15, 2026
This is implemented in #8566:
POST /repos/{owner}/{repo}/tagswith{"name": "...", "target": "..."}, wheretargetis a branch, tag or commit SHA and defaults to the default branch. It creates a lightweight tag and will ship in 0.15. Thanks @Meldiron for the original proposal in #8212, you are credited as a co-author.