You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Sprintf("Merge pull request '%s' (%s%d) from %s into %s", pr.Issue.Title, issueReference, pr.Issue.Index, pr.HeadBranch, pr.BaseBranch)
}
returnfmt.Sprintf("Merge pull request '%s' (%s%d) from %s:%s into %s", pr.Issue.Title, issueReference, pr.Issue.Index, pr.HeadRepo.FullName(), pr.HeadBranch, pr.BaseBranch)
I think it would be great if the default message could be a template, so that we can change them to our needs.
In our specific case the title of a PR has to be in a fixed form, e.g. "Issue #12345: Support commit message templates".
The commits within our repositories also have to comply to that form, so the workflow for merging is always:
Press merge button
Cut out the first part of the message up to PR title
Cut out everything after the PR title
With a template I could just change the template from Merge pull request '{{.Title}}'... to {{.Title}} :-)
Screenshots
No response
The text was updated successfully, but these errors were encountered:
Feature Description
Hello there 👋🏻
Currently the default commit messages for merges in pull requests are hard coded within Gitea:
gitea/models/pull.go
Lines 243 to 247 in 20eaca6
I think it would be great if the default message could be a template, so that we can change them to our needs.
In our specific case the title of a PR has to be in a fixed form, e.g. "Issue #12345: Support commit message templates".
The commits within our repositories also have to comply to that form, so the workflow for merging is always:
With a template I could just change the template from
Merge pull request '{{.Title}}'...
to{{.Title}}
:-)Screenshots
No response
The text was updated successfully, but these errors were encountered: