Skip to content
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

add source_pr_author template to backport action #15394

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nohwnd
Copy link
Member

@nohwnd nohwnd commented Jan 9, 2025

Allow substituting PR author in the title and description templates. This allows the PR title to mimic the message that GH would autogenerate in release notes, so backported PRs don't look out of place and don't have to be manually fixed.

pr_title_template: '%source_pr_title% by @%source_pr_author% in #%source_pr_number% (backport to %target_branch%)'

would backport with title:

Update CONTRIBUTING.md by @nohwnd in #2605 (backport to rel/5.x.x)

Which will then autogenerate into release notes as:

Update CONTRIBUTING.md by @nohwnd in #2605 (backport to rel/5.x.x) by @dotnet-bot in #2606

And I can go and simply delete the by dotnet bot and backport PR title, or keep it if needed.

Proof that the change works:
image

I did not prefix the name with @ in the replacement to keep it consistent with the PR name that also does not prefix #.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant