Skip to content

ci: check for changesets with a skip label - #412

Merged
liuliu-dev merged 1 commit into
mainfrom
liuliu/changeset-ci-check
Dec 4, 2026
Merged

liuliu-dev merged 1 commit into
mainfrom
liuliu/changeset-ci-check

Conversation

@liuliu-dev

@liuliu-dev liuliu-dev commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

follow-up to #411 and https://github.com/github/primer-engineering/issues/363, matching the changes added to the other custom element setup PRs.

what changed

  • add a read-only Check for changeset PR check that accepts an added/updated release note or the skip-changeset label.
  • rerun the check when labels are added or removed; README changes and deleted notes do not count as a changeset.
  • create the repository label and apply it to this CI-only PR. other build/test checks are unaffected.
  • automatically apply the skip label to release-tracking PRs, which consume existing changesets.
  • document when to skip, and how to make the check required in branch protection/rulesets. branch protection itself is unchanged.

publishing remains manual. the existing GITHUB_TOKEN event limitation still applies; an approved app token is needed if generated release PRs must trigger Actions checks.

validation

  • passed 14 workflow-script cases covering missing notes, README/config/deleted-note exclusions, added/updated/renamed notes, pagination, exact-label bypass/removal, and API errors.
  • parsed both workflows and checked read-only PR permissions, release-label command, and no publishing.
  • local build could not run because dependencies are missing; restoring the locked dependencies failed with npm registry ENOTCONN. hosted CI passed: lint, build, browser tests, and the changeset check. https://github.com/github/relative-time-element/actions/runs/47416511766

Follow up on #411 with the same label-aware changeset check as the other custom elements. Label generated release tracking PRs and document the required-check setting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@liuliu-dev
liuliu-dev requested a review from a team as a code owner December 4, 2026 20:14
@liuliu-dev liuliu-dev added the skip-changeset No release needed; bypass only the changeset check. label Dec 4, 2026
Copilot AI adaptive review requested due to automatic review settings December 4, 2026 20:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the changeset-check update.

No open issues 🎉

What changed in this PR

Adds a changeset check to the release-tracking workflow while keeping publishing manual and other CI checks unchanged.

Changes:

  • Require a changeset file or skip-changeset label, rechecking when labels change.
  • Automatically label release-tracking PRs to bypass the requirement.
  • Document skip-label usage and how to require the check for merging.
File Description
.github/​workflows/​release-tracking.yml Applies the skip label to release-tracking PRs.
.github/​workflows/​check-for-changeset.yml Adds a read-only check excluding README changes and deleted notes.
.changeset/​README.md Explains exemptions and required-check configuration.

Review effort: Balanced (adaptive)

@liuliu-dev
liuliu-dev merged commit cd9e0ff into main Dec 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changeset No release needed; bypass only the changeset check.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants