I suggest you ...

Mark tag as protected so only some of users can push to them.

Mark tag as protected so only some of users can push to them.

Same concept to (https://github.com/gitlabhq/gitlabhq/issues/411) but with tags instead of branches.

From: https://github.com/gitlabhq/gitlabhq/issues/6077

39 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Luis Martin GilLuis Martin Gil shared this idea  ·   ·  Admin →

    8 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Thomas DeinhamerThomas Deinhamer commented  · 

        Sounds legit. If the tag "v0.1" *lives* on master, develop, feature/my-feature etc. I can't and don't want to protect all those branches to protect the tag. Sounds like a nice feature proposal.

      • Luis Martin GilLuis Martin Gil commented  · 

        I would say that the commit lives on one or more branches. It doesn't make sense to me to protect the branches the tag lives on in order to protect the tag.

        This is just an idea in order not to allow people to make mistakes with tags already created in the repo. Removing old-tags by mistake is a very undesired situation.

      • Luis Martin GilLuis Martin Gil commented  · 

        GitLab team (Admin, Gitlab). "Mart, thanks for explaining, if you want to protect the tags you can just protect the branch these tags are on I think."

        A tag is associated to a commit, not a branch.

        ~~~

        Mart Sõmerma.

        That's what I meant, thanks.

        ~~~

        Anonymous. "That is not what tags are for. Once set, a tag should never be changed again."

        Agreed, but sometimes people make mistakes, that's the reason I would like this feature to be implemented.

      • GitLab teamAdminGitLab team (Admin, Gitlab) commented  · 

        Mart, thanks for explaining, if you want to protect the tags you can just protect the branch these tags are on I think.

      • Mart SõmermaaMart Sõmermaa commented  · 

        I think there is a misunderstanding of the wording of the title.

        Luis is requesting protection for tags because you can force push tags like branches.
        The scenario is as follows:

        git tag -f -a v0.0.1
        git push -f --tags

        The idea here is to protect against changing tags accidentally like this.

        I recommend to reopen this, but the final call is of course up to the admins.

      • Anonymous commented  · 

        That is not what tags are for. Once set, a tag should never be changed again.

      Feedback and Knowledge Base