allow PullsAllowMerge/PullsAllowRebase to be enabled via configuration #1707

Closed
opened 2025-11-02 04:10:20 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @jstrachan on GitHub (Apr 18, 2018).

I wonder if we could add a configuration so that we can enable the flags PullsAllowMerge/PullsAllowRebase OOTB on all newly created repositories?

Then whether we create new repositories via the web UI or REST API they could come with some of these boxes enabled?

Otherwise its painful; folks have to go into the web UI and tweak newly created repos if they want them to work with PRs:
repo-config

I originally raised this as an issue against the REST API - but it turns out there isn't a REST API I can see to configure the repository options and this issue affects repos created via the web UI too
https://github.com/go-gitea/go-sdk/issues/100

Originally created by @jstrachan on GitHub (Apr 18, 2018). I wonder if we could add a configuration so that we can enable the flags `PullsAllowMerge/PullsAllowRebase` OOTB on all newly created repositories? Then whether we create new repositories via the web UI or REST API they could come with some of these boxes enabled? Otherwise its painful; folks have to go into the web UI and tweak newly created repos if they want them to work with PRs: <img width="485" alt="repo-config" src="https://user-images.githubusercontent.com/30140/38024621-7fe90278-327d-11e8-85b3-6f59a272aeba.png"> I originally raised this as an issue against the REST API - but it turns out there isn't a REST API I can see to configure the repository options and this issue affects repos created via the web UI too https://github.com/go-gitea/go-sdk/issues/100
GiteaMirror added the type/bugmodifies/api labels 2025-11-02 04:10:21 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 28, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 28, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@adelowo commented on GitHub (Jan 28, 2019):

This is enabled by default this days I believe

@adelowo commented on GitHub (Jan 28, 2019): This is enabled by default this days I believe
Author
Owner

@jstrachan commented on GitHub (Jan 28, 2019):

@adelowo ah awesome thanks!

@jstrachan commented on GitHub (Jan 28, 2019): @adelowo ah awesome thanks!
Author
Owner

@apricote commented on GitHub (Jan 28, 2019):

For reference, all merge styles are enabled for new repos here https://github.com/go-gitea/gitea/blob/master/models/repo.go#L1311

@apricote commented on GitHub (Jan 28, 2019): For reference, all merge styles are enabled for new repos here https://github.com/go-gitea/gitea/blob/master/models/repo.go#L1311
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1707