JinMao
2022-10-13 6faacd2d8546f246bb72c32387210ec188861b80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Issue Labeled
 
on:
  issues:
    types: [labeled]
 
jobs:
  reply-labeled:
    runs-on: ubuntu-latest
    steps:
      - name: remove pending
        if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug'
        uses: actions-cool/issues-helper@v2.1.1
        with:
          actions: 'remove-labels'
          token: ${{ secrets.OPER_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
          labels: 'bug: pending triage'
 
      - name: need reproduction
        if: github.event.label.name == 'need reproduction'
        uses: actions-cool/issues-helper@v2.1.1
        with:
          actions: 'create-comment, remove-labels'
          token: ${{ secrets.OPER_TOKEN }}
          issue-number: ${{ github.event.issue.number }}
          body: |
            Hello @${{ github.event.issue.user.login }}. Please provide the complete reproduction steps and code. Issues labeled by `need reproduction` will be closed if no activities in 3 days.
          labels: 'bug: pending triage'