Prevent git push --tags on any PR #9497

Open
opened 2025-11-02 08:40:45 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @camlafit on GitHub (Sep 1, 2022).

Feature Description

Hello

We have a trouble with push --tags option. This option can be used also on any PR.
In this specific case normally we should work only on this branch and prevent any other action.

Some IDE as source tree, allow to enable by default --tags option on any push.
At this moment some tags are pushed without any notification and could add/restore/change tags.

Could be interesting to prevent this case, and prevent to push tags on same time with a push on PR (standard branches looks an others use cases).

Gitea could be prohib or raise an alert.

In our usecase :

  • we have clean many tags on our main repository
  • an user have retrieved old tag
  • work on pR
  • do a push (with --tags)
  • all old tags come back on repository

We took some time to understand this behavior and change IDE configuration.

Thanks

Screenshots

No response

Originally created by @camlafit on GitHub (Sep 1, 2022). ### Feature Description Hello We have a trouble with push --tags option. This option can be used also on any PR. In this specific case normally we should work only on this branch and prevent any other action. Some IDE as source tree, allow to enable by default --tags option on any push. At this moment some tags are pushed without any notification and could add/restore/change tags. Could be interesting to prevent this case, and prevent to push tags on same time with a push on PR (standard branches looks an others use cases). Gitea could be prohib or raise an alert. In our usecase : * we have clean many tags on our main repository * an user have retrieved old tag * work on pR * do a push (with --tags) * all old tags come back on repository We took some time to understand this behavior and change IDE configuration. Thanks ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:40:45 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9497