Skip to content

[WIP] Fix code based on review comment and add CI integration#1372

Merged
lukasoppermann merged 2 commits into
feat/token-tooling-improvementsfrom
copilot/add-ci-integration-test-tokens
May 4, 2026
Merged

[WIP] Fix code based on review comment and add CI integration#1372
lukasoppermann merged 2 commits into
feat/token-tooling-improvementsfrom
copilot/add-ci-integration-test-tokens

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

  • Understand the review comment (#discussion_r3180172433): checkRemovedTokens is only in Husky pre-commit, not CI
  • Add check:removed-tokens npm script to package.json
  • Add CI steps in .github/workflows/ci.yml to fetch base branch and run the removed-token check on PRs

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 4, 2026

⚠️ No Changeset found

Latest commit: 9fb27c4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

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

Click here to learn what changesets are, and how to add one.

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

Agent-Logs-Url: https://github.com/primer/primitives/sessions/c230b8f8-e545-4387-a486-326f7103e1a8

Co-authored-by: lukasoppermann <813754+lukasoppermann@users.noreply.github.com>
@lukasoppermann lukasoppermann added the skip changeset Apply to PRs that should not result in a version bump. label May 4, 2026
@lukasoppermann lukasoppermann marked this pull request as ready for review May 4, 2026 08:23
@lukasoppermann lukasoppermann requested a review from a team as a code owner May 4, 2026 08:23
@lukasoppermann lukasoppermann requested a review from siddharthkp May 4, 2026 08:23
@lukasoppermann lukasoppermann merged commit 61cef5f into feat/token-tooling-improvements May 4, 2026
21 of 23 checks passed
@lukasoppermann lukasoppermann deleted the copilot/add-ci-integration-test-tokens branch May 4, 2026 08:23
Copilot stopped work on behalf of lukasoppermann due to an error May 4, 2026 08:23
Copilot AI requested a review from lukasoppermann May 4, 2026 08:23
@github-actions github-actions Bot temporarily deployed to Preview (Storybook) May 4, 2026 08:24 Inactive
lukasoppermann added a commit that referenced this pull request May 4, 2026
* chore: add token validation and extraction utilities

- Add husky pre-commit hook for token validation
- Add removed token detection script and lint rule
- Add token name extraction utilities with tests
- Refactor buildFigma to support new token tooling

These utilities enable linting and validation of token removal patterns,
preventing accidental deprecation of active design tokens.

skip-changeset: true

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: apply Prettier formatting to color-scales.md

Agent-Logs-Url: https://github.com/primer/primitives/sessions/62862b8b-5de5-4ab4-87d7-5079352e5c5b

Co-authored-by: lukasoppermann <813754+lukasoppermann@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix: return null when --base flag has no value in getArg

Agent-Logs-Url: https://github.com/primer/primitives/sessions/641948a0-fd71-40b7-be44-2454938872dd

Co-authored-by: lukasoppermann <813754+lukasoppermann@users.noreply.github.com>

* [WIP] Fix code based on review comment and add CI integration (#1372)

* Initial plan

* feat: add CI integration for removed token check

Agent-Logs-Url: https://github.com/primer/primitives/sessions/c230b8f8-e545-4387-a486-326f7103e1a8

Co-authored-by: lukasoppermann <813754+lukasoppermann@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lukasoppermann <813754+lukasoppermann@users.noreply.github.com>

* fix: add fetch-depth: 0 to CI checkout step to fix merge-base failure

Agent-Logs-Url: https://github.com/primer/primitives/sessions/7bc74156-cbd8-4525-a3be-c99027f33c40

Co-authored-by: lukasoppermann <813754+lukasoppermann@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lukasoppermann <813754+lukasoppermann@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changeset Apply to PRs that should not result in a version bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants