-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow set default merge style while creating repo #19751
Conversation
How about put it into template. |
Sorry, what does it mean |
I think what @lunny meant is that we might want to move this option into a template repository or into a |
I was but now I think it's not a good idea because we need some branch protected rules to protect it. |
* giteaofficial/main: Allow postgres integration tests to run over unix pipe (go-gitea#19875) improvement some release related code (go-gitea#19867) feat: add DEFAULT_MERGE_STYLE to `repository.pull-request` section for repo init (go-gitea#19751) [skip ci] Updated translations via Crowdin Prevent NPE on update mirror settings (go-gitea#19864)
feat: allow set default merge style while creating repo
currently, we have something like
DEFAULT_BRANCH
, allow to init a repo with global pre-configured value while creating a repo.but no way to do this for PR merge style, user have to do this over and over if they want all repo created with default merge style set to
squash
other than defaultmerge
style.this PR allow user to set the default value while creating repo via the ini config file, user can below to gitea
app.ini
:or use env var
GITEA__REPOSITORY__PULL_REQUEST__DEFAULT_MERGE_STYLE=squash