Skip to content

Commit

Permalink
Make automatic backporting PRs take the title from the original one
Browse files Browse the repository at this point in the history
Up until now, the title of the backporting PRs was the name of the merge
commit, which is not very readable. This commit builds the title from
the original PR title and the target branch, e.g.:

    [v4.2] Fix some bug

This is now possible thanks to upstream's recent changes. See
sorenlouv/backport#455 for details.
  • Loading branch information
waiting-for-dev committed Sep 4, 2023
1 parent 355267a commit 48f1579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .backportrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"prTitle": "[{{targetBranch}}] {{sourcePullRequest.title}}"
}
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
)
steps:
- name: Backport Action
uses: sqren/backport-github-action@v8.9.3
uses: sqren/backport-github-action@v9.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: backport-
Expand Down

0 comments on commit 48f1579

Please sign in to comment.