-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
331 additions
and
225 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,4 @@ | ||
changeset-added: | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: ['.changeset/*'] |
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,8 +1,9 @@ | ||
### Description | ||
|
||
Summary of the change. | ||
Fixes: | ||
|
||
### Checklist | ||
|
||
- [ ] My changes generate no new warnings | ||
- [ ] I've done a self-review of this pull request | ||
- [ ] I have self-reviewed the code and added `AI-PR-Review` label. | ||
- [ ] These changes don't generate any new warnings in the terminal/browser console. | ||
- [ ] This PR has new components/utils and tests have been added for them (if applicable). |
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,60 @@ | ||
name: Checklist | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- edited | ||
- synchronize | ||
- ready_for_review | ||
- labeled | ||
workflow_run: | ||
workflows: ["Labeler"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
detect: | ||
name: Detect | ||
runs-on: self-hosted | ||
outputs: | ||
checked: ${{ steps.detect.outputs.checked }} | ||
unchecked: ${{ steps.detect.outputs.unchecked }} | ||
|
||
steps: | ||
- name: Checkbox Trigger | ||
id: detect | ||
uses: karlderkaefer/github-action-checkbox-trigger@v1 | ||
with: | ||
github-token: ${{ github.token }} | ||
action: detect | ||
- name: List changes | ||
run: | | ||
echo "checked=${{ steps.detect.outputs.checked }}" | ||
echo "unchecked=${{ steps.detect.outputs.unchecked }}" | ||
verify: | ||
name: Verify | ||
needs: [detect] | ||
runs-on: self-hosted | ||
steps: | ||
- name: Self-review | ||
if: | | ||
github.event.pull_request.draft == false && | ||
contains(needs.detect.outputs.unchecked, 'I have self-reviewed the code and added `AI-PR-Review` label.') | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.setFailed('Please self-review the code and address AI-PR-Review comments before requesting a review.') | ||
- name: Changeset | ||
if: | | ||
github.event.workflow_run.conclusion == 'success' && | ||
github.event.pull_request.draft == false && | ||
!(contains(github.event.pull_request.labels.*.name, 'changeset-not-applicable') || | ||
contains(github.event.pull_request.labels.*.name, 'changeset-added')) | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.setFailed('Please add changeset or add the changeset-not-applicable label to the PR.') |
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,18 @@ | ||
name: Labeler | ||
|
||
on: pull_request_target | ||
|
||
jobs: | ||
labeler: | ||
name: Label | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Add labels | ||
uses: actions/labeler@v5 | ||
with: | ||
sync-labels: true |
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,3 @@ | ||
{ | ||
"printWidth": 105 | ||
} |
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
Oops, something went wrong.