ci: Annotate PR descriptions with branch and user info - #65
Open
AhooPao wants to merge 2 commits into
Open
Conversation
Add a GitHub Actions workflow that appends a "Branch info" section (source/target user and branch) to the description of every new PR. Co-Authored-By: Claude <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
Co-Authored-By: Claude <noreply@anthropic.com>
BossZou
approved these changes
Aug 13, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #65 +/- ##
=======================================
Coverage 93.14% 93.14%
=======================================
Files 25 25
Lines 831 831
Branches 271 271
=======================================
Hits 774 774
Misses 32 32
Partials 25 25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two-part change so that every squash-merge commit's Extended description includes source/target branch and user info:
A new workflow (
.github/workflows/pr-branch-info.yml) appends aBranch infosection to every PR description when the PR is opened:Required repository setting change (needs admin, see below): set
squash_merge_commit_messagetoPR_BODYso the merge dialog's Extended description is pre-filled with the PR description instead of the commit list. This is what carries theBranch infosection into the squash commit message at merge time.Required repository setting (admin)
With the current settings (
squash_merge_commit_message=COMMIT_MESSAGES), the Extended description at merge time is the commit list, and PR description content is dropped — so the branch info would never reach the merge commit.Please change it via Settings → General → Pull Requests → Allow squash merging → Default commit message → "Pull request title and description", or run:
Motivation
For PRs (especially from forks), it is useful to see in the merge commit who owns the source branch and which branches the merge involved.
Related issue
Closes #64
Test plan
ghCLI:Checklist
CHANGELOG.mdupdated (CI-only change; entry added)