-
Notifications
You must be signed in to change notification settings - Fork 211
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
Append PR number to merge commit message #255
Comments
Related to this part? Lines 376 to 392 in 58724c9
|
Hello, @pascalgn I think the current alternative to appending PR number is to customize the commit message ourselves. For example, if I want to append a PR number to "pull-request-title" option of
The full example may look like this: - name: Automerge a PR with 'automerge' label
id: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
MERGE_METHOD: 'squash'
MERGE_COMMIT_MESSAGE: '{pullRequest.title} (#{pullRequest.number})'
UPDATE_METHOD: 'rebase' But I hope that this GitHub Action can append |
Feature Request
When merging a pull request on the GitHub web client, the suggested commit message (at least in the case of a squash commit, which we always use) will automatically include the number of the PR in parentheses, like so:
However, when merging using this GitHub Action, the first line of the commit message will look like this:
No matter what option of
MERGE_COMMIT_MESSAGE
I choose:automatic
pull-request-title
pull-request-description
pull-request-title-and-description
Therefore, I hope that it can append
(#NUM)
to the first line of the commit message for all possible options.Versions
Current latest release: v0.16.2
The text was updated successfully, but these errors were encountered: