Skip to content

Commit

Permalink
Merge branch 'main' into button-group-shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Dec 11, 2024
2 parents 8621b12 + 74d3de4 commit 4cf2bb5
Show file tree
Hide file tree
Showing 2,029 changed files with 26,996 additions and 12,993 deletions.
5 changes: 0 additions & 5 deletions .changeset/blue-eggs-suffer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clean-mails-accept.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/few-zebras-drive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-suns-smoke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-olives-lay.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/four-schools-grin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gold-items-shave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/grumpy-lamps-behave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-avocados-remember.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/itchy-paws-bake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-spoons-explode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/modern-icons-clean.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nice-shoes-fail.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/odd-frogs-listen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-boxes-clap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-plums-explode.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/popular-moose-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Fix `border-color` on ActionList Group header
5 changes: 0 additions & 5 deletions .changeset/quiet-seahorses-yawn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shy-seahorses-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/six-colts-admire.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slow-snails-swim.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sour-flies-camp.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/tiny-fireants-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Remove `min-width` on leading visuals in ActionList
5 changes: 5 additions & 0 deletions .changeset/tricky-scissors-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Convert ConfirmationDialog to CSS modules behind feature flag
5 changes: 0 additions & 5 deletions .changeset/twelve-kings-confess.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-maps-grow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-llamas-exist.md

This file was deleted.

10 changes: 8 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,14 @@ module.exports = {
parserOptions: {
project: 'tsconfig.json',
},
extends: ['plugin:playwright/jest-playwright'],
rules: {},
extends: ['plugin:playwright/recommended'],
rules: {
'playwright/expect-expect': 'off',
'playwright/no-conditional-expect': 'off',
'playwright/no-conditional-in-test': 'off',
'playwright/no-wait-for-selector': 'off',
'playwright/valid-title': 'off',
},
},

// rules which apply only to Markdown
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/assign_release_conductor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i -g npm@^10.5.1
- run: npm ci
- uses: ./.github/actions/pagerduty
id: pagerduty
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/check-for-integration-result-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Check for integration result comment

on:
issue_comment:
types: [created, edited]

jobs:
# note: this workflow always passes, it does not fail when integration tests are failing
check-for-integration-result-comment:
if: github.event.issue.pull_request
runs-on: ubuntu-latest
steps:
- name: Get integration result comment
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const INTEGRATION_LABEL_NAMES = {
// synced with https://github.com/primer/react/labels?q=integration-tests
skipped: 'integration-tests: skipped manually',
recommended: 'integration-tests: recommended',
failing: 'integration-tests: failing',
passing: 'integration-tests: passing'
};
const issue = {
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo
};
const { data: currentLabels } = await github.rest.issues.listLabelsOnIssue(issue);
const existingIntegrationLabels = currentLabels
.map(label => label.name)
.filter(label => label.startsWith('integration-tests:'));
if (existingIntegrationLabels.includes(INTEGRATION_LABEL_NAMES.skipped)) return;
const result = await github.rest.issues.listComments(issue);
const integrationComments = result.data.filter(
comment =>
comment.user.login == 'primer-integration[bot]' &&
comment.body.includes('<!-- test-result')
);
if (integrationComments.length === 0) {
console.log('Integration comment with test-result not found');
return; // CI should pass if there's nothing to do
}
const latestComment = integrationComments.pop();
console.log(latestComment.body);
// based on comment message in github/github: https://github.com/github/github/blob/fe7fe9072fd913ec04255ce7403ae764e6c33d5f/.github/workflows/github-ci.yml#L664-L692
const pass = latestComment.body.includes('🟢');
console.log({ pass });
const newIntegrationLabel = pass ? INTEGRATION_LABEL_NAMES.passing : INTEGRATION_LABEL_NAMES.failing;
console.log({existingIntegrationLabels, newIntegrationLabel})
Object.values(INTEGRATION_LABEL_NAMES).map(async (name) => {
if (name === newIntegrationLabel) {
if (existingIntegrationLabels.includes(name)); // already added, nothing to do here
else await github.rest.issues.addLabels({...issue, labels: [newIntegrationLabel]});
} else if (existingIntegrationLabels.includes(name)) {
// remove outdated labels
await github.rest.issues.removeLabel({ ...issue, name });
}
});
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Check for unformatted files
Expand All @@ -43,7 +42,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Lint JavaScript
Expand All @@ -63,7 +61,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -81,7 +78,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build project
Expand All @@ -99,7 +95,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -118,7 +113,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -159,7 +153,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -196,7 +189,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -237,7 +229,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -270,7 +261,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -311,7 +301,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -348,7 +337,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build storybook
Expand Down Expand Up @@ -389,7 +377,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: install dependencies
run: npm ci
- name: download all reports
Expand Down Expand Up @@ -419,7 +406,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build components.json
Expand All @@ -435,7 +421,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci
- name: Build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/codescan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
with:
node-version: 22
cache: 'npm'
- run: npm i -g npm@^10.5.1
- name: Install dependencies
run: npm ci

Expand Down
Loading

0 comments on commit 4cf2bb5

Please sign in to comment.