how to manage a 'code freeze' situation? #6082

Closed
opened 2025-11-02 06:44:36 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @flobee on GitHub (Oct 2, 2020).

Feature/ Usage request:

Hi there

I thought i could add a pre-recieve hook to tell every one that the code is currently in 'code freeze' mode and exit the request so that pushes will not get into a master repository.

But: "pull request" from forks also breaking that way.

Have you an idea how to do things like this? Allow pulls and "pull requests" form forks but deny pushes until code freeze ends.

Kind regards
Florian

Originally created by @flobee on GitHub (Oct 2, 2020). Feature/ Usage request: Hi there I thought i could add a pre-recieve hook to tell every one that the code is currently in 'code freeze' mode and exit the request so that pushes will not get into a master repository. But: "pull request" from forks also breaking that way. Have you an idea how to do things like this? Allow pulls and "pull requests" form forks but deny pushes until code freeze ends. Kind regards Florian
GiteaMirror added the type/question label 2025-11-02 06:44:36 -06:00
Author
Owner

@a1012112796 commented on GitHub (Oct 2, 2020):

Do you means an option to not allow user to create pr to this branch? thanks

@a1012112796 commented on GitHub (Oct 2, 2020): Do you means an option to not allow user to create pr to this branch? thanks
Author
Owner

@flobee commented on GitHub (Oct 2, 2020):

Do you means an option to not allow user to create pr to this branch? thanks

no

  • create a 'pull request' from a fork: Yes
  • push directly to a specific repository: No
@flobee commented on GitHub (Oct 2, 2020): > Do you means an option to not allow user to create pr to this branch? thanks no - create a 'pull request' from a fork: Yes - push directly to a specific repository: No
Author
Owner

@a1012112796 commented on GitHub (Oct 2, 2020):

Hmm, You can set this branch as protected, and disable push.Thanks!
IMG_20201002_194341

@a1012112796 commented on GitHub (Oct 2, 2020): Hmm, You can set this branch as protected, and disable push.Thanks! ![IMG_20201002_194341](https://user-images.githubusercontent.com/25342410/94919783-9cd39300-04e7-11eb-8241-3fa3aa2f17a8.jpg)
Author
Owner

@flobee commented on GitHub (Oct 2, 2020):

Yepp! Thats it! Thank you!

@flobee commented on GitHub (Oct 2, 2020): Yepp! Thats it! Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6082