Skip to content

Commit

Permalink
ci: 尝试调整 issue-handle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Dec 6, 2022
1 parent b528a7f commit 4e1b767
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/issue-handle.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: Issue Handle
on:
on:
issues:
types: [opened, closed]


jobs:
issue-open-waiting-for-confirm:
name: Issue Open Waiting Confirm
if: github.event.action == 'opened' && github.event.sender.id != github.event.repository.owner.id
if: github.event.action == 'opened' && contains(github.event.repository.collaborators.*.id, github.event.sender.id)
# github.event.sender.id != github.event.repository.owner.id
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/simple-issue-labeler
- name: Issue Labeler For Waiting Confirm
uses: andymckay/labeler@1.0.4
with:
with:
add-labels: "等待确认"
repo-token: ${{ secrets.FORLIY_ACCESS_TOKEN }}

issue-close-remove-waiting-label:
name: Issue Close remove Waiting Label
if: github.event.action == 'closed'
Expand All @@ -25,6 +26,6 @@ jobs:
# https://github.com/marketplace/actions/simple-issue-labeler
- name: Issue Labeler For Waiting Confirm
uses: andymckay/labeler@1.0.4
with:
with:
remove-labels: "等待确认, 等待反馈"
repo-token: ${{ secrets.FORLIY_ACCESS_TOKEN }}

0 comments on commit 4e1b767

Please sign in to comment.