create-pull-request
create-pull-request copied to clipboard
Default the PR title and description to the commit's
- uses: peter-evans/create-pull-request@v7
with:
commit-message: |
Update AGP sources to the latest
_Auto-generated by `dump-sources` Github workflow._
title: Update AGP sources to the latest
body: _Auto-generated by `dump-sources` Github workflow._
branch: actions/dump-sources
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> # Same as `committer`.
delete-branch: true
Now I use this action like the snippet above, duplicate title and body to the commit's, can we default them like the GitHub web did? (For a single commit PR, the PR's title and description should be the commit's.)
Hi @Goooler
You're right, this is how GitHub works. I'll have a think if it makes sense to make this change in a future major version.
I've made changes to these defaults in the past, too. So I'll have to check history and consider the best course of action.
Thanks!