Skip to content

Commit 2cad47b

Browse files
Use target branch name into the PR subject line
Signed-off-by: Shreeya Patel <spatel@ciq.com>
1 parent 3309f8c commit 2cad47b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/kernel-build-and-test-x86_64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,13 +512,13 @@ jobs:
512512
if [ -n "$EXISTING_PR" ]; then
513513
echo "PR #$EXISTING_PR already exists, updating it"
514514
gh pr edit "$EXISTING_PR" \
515-
--title "[${{ github.ref_name }}] ${{ steps.commit_msg.outputs.commit_subject }}" \
515+
--title "[$BASE_BRANCH] ${{ steps.commit_msg.outputs.commit_subject }}" \
516516
--body-file pr_body.md
517517
else
518518
echo "Creating new PR from ${{ github.ref_name }} to $BASE_BRANCH"
519519
gh pr create \
520520
--base "$BASE_BRANCH" \
521521
--head "${{ github.ref_name }}" \
522-
--title "[${{ github.ref_name }}] ${{ steps.commit_msg.outputs.commit_subject }}" \
522+
--title "[$BASE_BRANCH] ${{ steps.commit_msg.outputs.commit_subject }}" \
523523
--body-file pr_body.md
524524
fi

0 commit comments

Comments
 (0)