Skip to content

ci(v8): port the changeset-from-pr auto-generator to the v8 branch - #113

Merged
AakashHotchandani merged 1 commit into
v8from
ci/port-changeset-generator-to-v8
Jul 29, 2026
Merged

ci(v8): port the changeset-from-pr auto-generator to the v8 branch#113
AakashHotchandani merged 1 commit into
v8from
ci/port-changeset-generator-to-v8

Conversation

@AakashHotchandani

Copy link
Copy Markdown
Collaborator

Why

v8-base PRs weren't getting changesets auto-generated, so they merged with none and no Version Packages PR opened (e.g. #87 → backfilled manually in #111).

Root cause: for pull_request events, GitHub runs the workflow from the PR's base branch. The generator (changeset-from-pr.yml) was added to main in #71, so it only ever ran for main-base PRs — never for v8-base ones.

What

Adds .github/workflows/changeset-from-pr.yml to v8, byte-for-byte identical to main's. The workflow is fully branch-agnostic:

So only the generator was missing. No layout/main-specific assumptions to adapt.

Effect

After merge, any open/edited/synchronized/(re)labeled v8-base PR gets its changeset committed to the PR branch automatically — same behavior as main. Skips forks, changeset-release/*, and skip-changeset-labelled PRs. Idempotent (its own push settles in one no-op pass).

No double-run risk with main's copy: a PR only runs its base branch's workflow, so main-base PRs use main's copy and v8-base PRs use this one.

For pull_request events GitHub runs the workflow from the PR's BASE branch, so
the auto-changeset generator (added to main in #71) never ran for v8-base PRs —
they merged with no changeset (e.g. #87 -> had to backfill via #111). Porting the
same workflow to v8 makes v8-base PRs get .changeset/pr-<n>.md auto-generated
from their Release section, exactly like main.

Byte-for-byte identical to main's changeset-from-pr.yml (fully branch-agnostic:
package @wdio/browserstack-service, .changeset/pr-<n>.md at repo root, parses the
## Release section). v8 already has the ready-for-review gate that makes that
section mandatory, so only the generator was missing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@AakashHotchandani
AakashHotchandani requested a review from a team as a code owner July 29, 2026 12:00
@AakashHotchandani
AakashHotchandani requested review from anish353 and xxshubhamxx and removed request for a team July 29, 2026 12:00
@AakashHotchandani
AakashHotchandani merged commit d97c37f into v8 Jul 29, 2026
4 checks passed
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.

1 participant