-
Notifications
You must be signed in to change notification settings - Fork 83
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
7 changed files
with
158 additions
and
5 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,10 @@ | ||
pull_request_rules: | ||
- name: Add label after CI lint passes | ||
conditions: | ||
- check-success=lint | ||
- check-success=build | ||
- check-success=Check_requirements | ||
actions: | ||
label: | ||
add: | ||
- lint_pass |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Remove Labels on PR Update | ||
|
||
on: | ||
pull_request_target: | ||
types: [synchronize] | ||
|
||
jobs: | ||
remove-labels: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Remove all labels | ||
run: | | ||
PR_NUMBER="${{ github.event.pull_request.number }}" | ||
LABELS=$(gh pr view "$PR_NUMBER" --json labels -q '.labels[].name') | ||
echo $PR_NUMBER | ||
echo $LABELS | ||
if [ -n "$LABELS" ]; then | ||
for label in $LABELS; do | ||
gh pr edit "$PR_NUMBER" --remove-label "$label" | ||
done | ||
else | ||
echo "No labels to remove." | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_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