Skip to content

Commit 36bf4fe

Browse files
mattleibowCopilot
andauthored
Include PR number in automerge commit subject (#91)
The squash merge subject was hardcoded without the PR number, making it hard to trace commits back to their source PR in git log. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e9653d2 commit 36bf4fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/automerge-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
echo "Auto-merging PR #$PR_NUMBER (SHA: $MERGE_SHA)..."
102102
merge_output=$(gh pr merge "$PR_NUMBER" --squash \
103103
--match-head-commit "$MERGE_SHA" \
104-
--subject "Update API docs from latest CI build" \
104+
--subject "Update API docs from latest CI build (#$PR_NUMBER)" \
105105
--body "Auto-merged after Learn Build validation passed (all checks green, no new warnings)." 2>&1) || {
106106
echo "merge_error<<EOF" >> "$GITHUB_OUTPUT"
107107
echo "$merge_output" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)