Skip to content

Commit

Permalink
ci(Changeset): auto add label (#427)
Browse files Browse the repository at this point in the history
* ci(Changeset): auto add label

* test: major

* chore: use issues-helper

* test: major

* Delete .changeset/tough-shirts-tan.md

---------

Co-authored-by: kiner-tang <[email protected]>
  • Loading branch information
thinkasany and kiner-tang authored Dec 31, 2023
1 parent 33fa8e5 commit 6262ce6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/changeset-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ jobs:
echo "comment=$comment" >> $GITHUB_OUTPUT
fi
- name: Add label
if: ${{ steps.check_changeset.outputs.comment != '' }}
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'major'

- name: update status comment
if: ${{ steps.check_changeset.outputs.comment != '' }}
uses: actions-cool/maintain-one-comment@v3
Expand All @@ -72,3 +81,12 @@ jobs:
body-include: '<!-- AUTO_CHANGESET_CHECK_HOOK -->'
number: ${{ github.event.pull_request.number }}
delete: true

- name: Remove labels
if: ${{ steps.check_changeset.outputs.comment == '' }}
uses: actions-cool/issues-helper@v3
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'major'

0 comments on commit 6262ce6

Please sign in to comment.