Skip to content

Commit 6c9d282

Browse files
authored
chore: update release notes skill to filter by base branch (tldraw#8150)
In order to prevent release notes from including PRs that were merged into feature branches (not main), this updates the write-release-notes skill to check `baseRefName` when fetching PR details. ### Change type - [x] `other` ### Test plan 1. Run the write-release-notes skill and verify it skips PRs merged into non-main branches. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk documentation-only change that updates guidance for how to collect PR metadata; no runtime or production code is affected. > > **Overview** > Updates the `write-release-notes` skill instructions to fetch `baseRefName` via `gh pr view` and explicitly **exclude PRs not targeting `main`** when compiling release notes, preventing feature-branch merges from being mistakenly included. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 0316bb8. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 3fca95b commit 6c9d282

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • .claude/skills/write-release-notes

.claude/skills/write-release-notes/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ gh pr list --state merged --base main --search "merged:2024-01-01..2024-02-01"
4545
For each PR, get the full details:
4646

4747
```bash
48-
gh pr view <PR_NUMBER> --json title,body,labels,author
48+
gh pr view <PR_NUMBER> --json title,body,labels,author,baseRefName
4949
```
5050

5151
Look for:
@@ -55,6 +55,8 @@ Look for:
5555
- Labels indicating category (api, bugfix, improvement, etc.)
5656
- Whether "breaking" appears in the PR
5757

58+
**Important:** Only include PRs whose `baseRefName` is `main`. PRs merged into feature branches (e.g. `default-shape-customization`) are not yet released — they will be included when the feature branch itself is merged to main.
59+
5860
### 4. Find patch releases
5961

6062
List any patch releases for this minor version:

0 commit comments

Comments
 (0)