-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:carbon-design-system/carbon into re…
…novate/eslint-plugin-jest-27.x
- Loading branch information
Showing
17 changed files
with
188 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Add To Merge Queue | ||
on: | ||
pull_request: | ||
types: [labeled, opened, reopened] | ||
|
||
jobs: | ||
add-to-merge-queue: | ||
name: Add to Merge Queue if the PR is labelled with any of the automerge labels | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.issue.labels.*.name, 'status: ready to merge 🎉') || contains(github.event.issue.labels.*.name, 'status: enable automerge 🟠')}} | ||
steps: | ||
- name: 'Add the PR to the merge queue via the GitHub CLI' | ||
run: gh pr merge | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,44 @@ | ||
name: "DCO Assistant" | ||
name: 'DCO Assistant' | ||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_target: | ||
types: [opened, closed, synchronize] | ||
merge_group: | ||
types: [checks_requested] | ||
|
||
jobs: | ||
DCO: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "DCO Assistant" | ||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the DCO document and I hereby sign the DCO.') || github.event_name == 'pull_request_target' | ||
- name: 'DCO Assistant' | ||
if: | ||
(github.event.comment.body == 'recheck' || github.event.comment.body | ||
== 'I have read the DCO document and I hereby sign the DCO.') || | ||
github.event_name == 'pull_request_target' | ||
uses: cla-assistant/github-action@v2.3.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
with: | ||
path-to-signatures: "dco-signatures.json" | ||
path-to-document: "https://github.com/carbon-design-system/carbon-dco/blob/main/dco.md" | ||
branch: "main" | ||
path-to-signatures: 'dco-signatures.json' | ||
path-to-document: 'https://github.com/carbon-design-system/carbon-dco/blob/main/dco.md' | ||
branch: 'main' | ||
allowlist: bot* | ||
remote-organization-name: carbon-design-system | ||
remote-repository-name: carbon-dco | ||
create-file-commit-message: "chore: create file to store dco signatures" | ||
signed-commit-message: "chore: $contributorName has signed the dco in #$pullRequestNo" | ||
custom-notsigned-prcomment: "Thanks for your submission! We ask that $you sign our [Developer Certificate of Origin](https://github.com/carbon-design-system/carbon-dco/blob/main/dco.md) before we can accept your contribution. You can sign the DCO by adding a comment below using this text:" | ||
custom-pr-sign-comment: "I have read the DCO document and I hereby sign the DCO." | ||
custom-allsigned-prcomment: "All contributors have signed the DCO." | ||
create-file-commit-message: | ||
'chore: create file to store dco signatures' | ||
signed-commit-message: | ||
'chore: $contributorName has signed the dco in #$pullRequestNo' | ||
custom-notsigned-prcomment: | ||
'Thanks for your submission! We ask that $you sign our [Developer | ||
Certificate of | ||
Origin](https://github.com/carbon-design-system/carbon-dco/blob/main/dco.md) | ||
before we can accept your contribution. You can sign the DCO by | ||
adding a comment below using this text:' | ||
custom-pr-sign-comment: | ||
'I have read the DCO document and I hereby sign the DCO.' | ||
custom-allsigned-prcomment: 'All contributors have signed the DCO.' | ||
lock-pullrequest-aftermerge: false | ||
use-dco-flag: true | ||
use-dco-flag: true |
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-568 KB
.yarn/cache/@testing-library-dom-npm-8.20.0-afe79da119-1e599129a2.zip
Binary file not shown.
Binary file renamed
BIN
+22 KB
...t-dom-npm-4.0.3-f02cf3b826-6bd22cdb79.zip → ...t-dom-npm-5.0.1-ac102ffff6-aad1ccae29.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ade/transforms/__testfixtures__/update-carbon-icons-react-import-to-carbon-react.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//prettier-ignore | ||
import { Add } from '@carbon/icons-react'; | ||
//prettier-ignore | ||
import { Settings, Search } from '@carbon/icons-react'; | ||
//prettier-ignore | ||
import Icons from '@carbon/icons-react'; | ||
import Something from 'somewhere-else'; | ||
import { SomethingElse } from 'somewhere-else'; |
8 changes: 8 additions & 0 deletions
8
...de/transforms/__testfixtures__/update-carbon-icons-react-import-to-carbon-react.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//prettier-ignore | ||
import { Add } from "@carbon/react/icons"; | ||
//prettier-ignore | ||
import { Settings, Search } from "@carbon/react/icons"; | ||
//prettier-ignore | ||
import Icons from "@carbon/react/icons"; | ||
import Something from 'somewhere-else'; | ||
import { SomethingElse } from 'somewhere-else'; |
12 changes: 12 additions & 0 deletions
12
packages/upgrade/transforms/__tests__/update-carbon-icons-react-import-to-carbon-react.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2023 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const { defineTest } = require('jscodeshift/dist/testUtils'); | ||
|
||
defineTest(__dirname, 'update-carbon-icons-react-import-to-carbon-react'); |
33 changes: 33 additions & 0 deletions
33
packages/upgrade/transforms/update-carbon-icons-react-import-to-carbon-react.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2023 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* Rewrites imports from '@carbon/icons-react' to '@carbon/react/icons' | ||
* | ||
* Transforms: | ||
* | ||
* import { Add } from '@carbon/icons-react'; | ||
* | ||
* Into: | ||
* | ||
* import { Add } from "@carbon/react/icons"; | ||
*/ | ||
|
||
function transformer(file, api) { | ||
const j = api.jscodeshift; | ||
|
||
return j(file.source) | ||
.find(j.ImportDeclaration, { | ||
source: { | ||
value: '@carbon/icons-react', | ||
}, | ||
}) | ||
.forEach((path) => { | ||
path.get('source').replace(j.stringLiteral('@carbon/react/icons')); | ||
}) | ||
.toSource(); | ||
} | ||
|
||
module.exports = transformer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters