Skip to content

Public API: Create tag #8209

Closed
Closed

Description

@Meldiron

Describe the feature

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

Activity

  1. added
    🎯 feature
    on Mar 24, 2026
  2. Meldiron commented on Mar 24, 2026

    @Meldiron
    ContributorAuthor

    I have contributed a pull request to address this issue: #8212

    Tests are passing, and I am available to address any comments 🙌

  3. unknwon commented on Nov 15, 2026

    @unknwon
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🎯 feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions