Skip to content

Default the PR title and description to the commit's #4111

Open

Description

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

Activity

  1. peter-evans commented on Aug 6, 2025

    @peter-evans
    Owner

    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.

  2. Goooler commented on Aug 6, 2025

    @Goooler
    ContributorAuthor

    Thanks!

  3. Malix-Labs commented on Jun 15, 2026

    @Malix-Labs

    I think relying on GitHub's default would be an improvement indeed

  4. Goooler commented on Aug 28, 2026

    @Goooler
    ContributorAuthor

    Patched this in my fork, see Goooler@aecdddb. I'd happy to send a PR if you want.

      # TODO: https://github.com/peter-evans/create-pull-request/issues/4111
      - uses: goooler/create-pull-request@aecdddbc61297db3dc7dd1e4039837f97c34d273
  5. Malix-Labs commented on Aug 29, 2026

    @Malix-Labs

    @Goooler please open the PR with CLOSES: #4111 in its body

  6. Goooler commented on Aug 29, 2026

    @Goooler
    ContributorAuthor

    I'm not an expert for ts, so I'd wait for Peter's decision. But you can workaround this by using the sample above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions