Skip to content

Remove fork-PR regeneration from changelog/upload and drop invalid inputs from sync - #319

Merged
Mpdreamz merged 3 commits into
mainfrom
fix/release-notes-secrets-and-cleanup
Aug 31, 2026
Merged

Remove fork-PR regeneration from changelog/upload and drop invalid inputs from sync#319
Mpdreamz merged 3 commits into
mainfrom
fix/release-notes-secrets-and-cleanup

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Aug 31, 2026

Copy link
Copy Markdown
Member

Two fixes to the sync job path: removes a step that was architecturally wrong, and drops inputs that upload never accepted.

Affects: CI/CD, changelog pipeline

Why

The upload action contained a step that looked up merged fork PRs for the pushed commit and retroactively generated changelog entries for them. This is the wrong place: any repo requiring a changelog file would silently pass that PR gate for fork PRs, then get an auto-generated entry injected at merge time by sync. Fork PRs that cannot push a changelog entry must add one manually during the PR — sync should only upload files that were already checked in.

The step also required pull-requests: read on the sync job (to call /commits/{sha}/pulls), which every consumer of the shared release-notes.yml pays even if they never accept fork PRs.

Additionally, the release-notes.yml sync job was passing owner and repo to the upload action, which does not declare those inputs, producing a ##[warning] on every run.

What

Remove the fork-PR regeneration step from changelog/upload

Deletes the "Add changelog entries for merged fork PRs" step entirely. Fork PR handling belongs at PR time, not at merge time.

Drop owner/repo from the upload step in release-notes.yml

The action derives repo context from the GitHub environment. Neither input is declared or used.

@Mpdreamz
Mpdreamz requested a review from a team as a code owner August 31, 2026 17:56
@Mpdreamz Mpdreamz added the bug Something isn't working label Aug 31, 2026
@Mpdreamz
Mpdreamz requested a review from reakaleek August 31, 2026 17:56
upload action does not accept owner/repo — drops the warning.
Merged-fork-PR step needs pull-requests: read to query PR data.

Co-Authored-By: Claude <noreply@anthropic.com>
@Mpdreamz
Mpdreamz force-pushed the fix/release-notes-secrets-and-cleanup branch from 8a556a9 to 9aae7fd Compare August 31, 2026 17:57
@Mpdreamz Mpdreamz changed the title Fix release-notes.yml: remove secrets block and drop invalid upload inputs Fix sync job: drop invalid upload inputs and add pull-requests: read Aug 31, 2026
Retroactively generating changelog entries on merge bypasses the PR gate:
any repo requiring a changelog file would silently pass for fork PRs, then
get an auto-generated entry injected by sync. Fork PRs that can't push a
changelog file must add one manually during the PR — sync should only upload
files already checked in.

Removes the step and the pull-requests: read permission it needed.

Co-Authored-By: Claude <noreply@anthropic.com>
@Mpdreamz Mpdreamz changed the title Fix sync job: drop invalid upload inputs and add pull-requests: read Remove fork-PR regeneration from changelog/upload and drop invalid inputs from sync Aug 31, 2026
Co-Authored-By: Claude <noreply@anthropic.com>
@Mpdreamz
Mpdreamz merged commit 5c164dd into main Aug 31, 2026
10 checks passed
@Mpdreamz
Mpdreamz deleted the fix/release-notes-secrets-and-cleanup branch August 31, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant