Skip to content

Commit

Permalink
Merge branch 'main' of github.com:primer/react into francinelucca/342…
Browse files Browse the repository at this point in the history
…3-prcbuttongroup-group-container-lacks-a-role--does-not-convey-its-purpose
  • Loading branch information
francinelucca committed Nov 8, 2024
2 parents fb53032 + 126cd03 commit 7bd33b6
Show file tree
Hide file tree
Showing 232 changed files with 1,216 additions and 781 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-dodos-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Remove the CSS modules feature flag from Avatar
5 changes: 5 additions & 0 deletions .changeset/forty-rats-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Update Spinner component to correctly use the `size` prop when both `sx` and `size` are provided
5 changes: 5 additions & 0 deletions .changeset/fuzzy-kiwis-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Fix small TextInput to be the use the correct font size
5 changes: 5 additions & 0 deletions .changeset/lazy-mugs-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

feat(Tooltip): Convert Tooltip to CSS modules behind team flag
5 changes: 0 additions & 5 deletions .changeset/lovely-shirts-hope.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-chefs-matter.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/slow-shoes-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

TreeView: Adds prop `truncate`, keeps default behavior of truncation but allows for text to wrap when turned off.
5 changes: 0 additions & 5 deletions .changeset/spotty-rice-explain.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/thick-pugs-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

feat(AnchoredOverlay): allow overlay to reflow
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 });
}
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.changeset
packages/react/CHANGELOG.md
dist
lib
!codemods/lib/**
Expand Down
Loading

0 comments on commit 7bd33b6

Please sign in to comment.