create-pull-request icon indicating copy to clipboard operation
create-pull-request copied to clipboard

Default the PR title and description to the commit's

Open Goooler opened this issue 5 months ago • 2 comments

- 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.)

Goooler avatar Aug 06 '25 00:08 Goooler

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.

peter-evans avatar Aug 06 '25 12:08 peter-evans

Thanks!

Goooler avatar Aug 06 '25 13:08 Goooler