Skip to content

ci: skip full CI suite on Version Packages PRs from changeset-release/main#268

Merged
trevor-coleman merged 3 commits into
mainfrom
copilot/review-ci-changeset-packages-prs
Jul 14, 2026
Merged

ci: skip full CI suite on Version Packages PRs from changeset-release/main#268
trevor-coleman merged 3 commits into
mainfrom
copilot/review-ci-changeset-packages-prs

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Version Packages PRs (from changeset-release/main) only contain version bumps and changelog updates — the code was already validated before merging to main. Running the full CI suite on these PRs is wasteful, and the Validate changesets step actively fails because changesets files are consumed during versioning.

Changes

  • ci.yml — Skip verify job when the PR head branch is changeset-release/main:

    if: github.event_name != 'pull_request' || github.head_ref != 'changeset-release/main'

    GitHub treats skipped jobs as satisfying required status checks, so no branch protection rule changes are needed.

  • release.yml — Skip the verify (CI checks) reuse call when pushing to changeset-release/main, and update version_or_release to run when verify is either successful or skipped:

    verify:
      if: github.ref != 'refs/heads/changeset-release/main'
    
    version_or_release:
      if: always() && (needs.verify.result == 'success' || needs.verify.result == 'skipped')

@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9af8e11

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI changed the title [WIP] Review CI checks for changeset version packages PRs ci: skip full CI suite on Version Packages PRs from changeset-release/main Jul 14, 2026
Copilot AI requested a review from trevor-coleman July 14, 2026 17:16
@trevor-coleman

Copy link
Copy Markdown
Collaborator

@copilot will this skip both when new commits are pushed to a PR and also when the PR is first opened?

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@copilot will this skip both when new commits are pushed to a PR and also when the PR is first opened?

Yes — both cases are covered. The pull_request event fires for both PR creation (opened) and new pushes to the PR (synchronize), so github.event_name == 'pull_request' is true in both scenarios.

With the condition:

if: github.event_name != 'pull_request' || github.head_ref != 'changeset-release/main'

When the head branch is changeset-release/main, both sub-expressions evaluate to false, so false || false = false — the job is skipped whether the PR was just opened or a new commit was pushed to it.

@trevor-coleman
trevor-coleman marked this pull request as ready for review July 14, 2026 18:18
@trevor-coleman
trevor-coleman merged commit cd39bfb into main Jul 14, 2026
8 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.

Review CI on "Version Packages" PRs (from branch: changeset-release/main)

2 participants