Skip to content

ci: fix release pr lookup in the changelog workflow#2039

Merged
CodeDredd merged 1 commit into
mainfrom
fix/release-pr-head-filter
Jul 20, 2026
Merged

ci: fix release pr lookup in the changelog workflow#2039
CodeDredd merged 1 commit into
mainfrom
fix/release-pr-head-filter

Conversation

@CodeDredd

Copy link
Copy Markdown
Owner

The changelog workflow looked up the release PR via pulls?head=v2.0.0 — but GitHub's head filter requires the owner: prefix. Without it the filter is ignored, the API returns the newest open PR, and the workflow appended the v2.0.0 release notes to that PR's body (this happened to several feature PRs; bodies are being cleaned up).

  • head=CodeDredd:v${newVersion}&state=open
  • safety guard: abort if the found PR's head ref isn't the release branch

Together with deleting the stale v2.0.0 branch (created from an old main state), the next main push will regenerate the release branch + draft release PR from the current state.

The head filter of the pulls API needs the 'owner:' prefix. Without it
GitHub ignores the filter and returns the newest open PR, whose body
then got the release notes appended. Also guard against patching a PR
whose head is not the release branch.
@CodeDredd
CodeDredd merged commit 3066380 into main Jul 20, 2026
11 checks passed
@CodeDredd
CodeDredd deleted the fix/release-pr-head-filter branch July 20, 2026 15:04
@github-actions github-actions Bot mentioned this pull request Jul 20, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.47%. Comparing base (c6bebb9) to head (e32d1fd).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2039      +/-   ##
==========================================
+ Coverage   99.40%   99.47%   +0.06%     
==========================================
  Files          82       82              
  Lines        3025     3025              
  Branches      533      533              
==========================================
+ Hits         3007     3009       +2     
+ Misses         15       13       -2     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants