Fix maintainer label, minor docs
| @@ -5,7 +5,7 @@ on: | |||
| 5 | types: [opened, edited, labeled, unlabeled] | 5 | types: [opened, edited, labeled, unlabeled] |
| 6 | 6 | ||
| 7 | jobs: | 7 | jobs: |
| 8 | issue-label-on-content: | 8 | label-on-content: |
| 9 | name: Auto-Label Issues (Based on Issue Content) | 9 | name: Auto-Label Issues (Based on Issue Content) |
| 10 | runs-on: ubuntu-latest | 10 | runs-on: ubuntu-latest |
| 11 | 11 | ||
| @@ -22,21 +22,25 @@ jobs: | |||
| 22 | enable-versioned-regex: 0 | 22 | enable-versioned-regex: 0 |
| 23 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 23 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 24 | 24 | ||
| 25 | issue-label-on-labels: | 25 | label-on-labels: |
| 26 | name: Auto-Label Issues (Based on Issue Labels) | 26 | name: Auto-Label Issues (Based on Issue Labels) |
| 27 | runs-on: ubuntu-latest | 27 | runs-on: ubuntu-latest |
| 28 | 28 | ||
| 29 | steps: | 29 | steps: |
| 30 | - name: β Add "π Approved" for relevant labels | 30 | - name: β Add "π Approved" for relevant labels |
| 31 | if: contains(fromJSON('["π©βπ» Good First Issue", "π Help Wanted", "πͺ² Confirmed", "β οΈ High Priority", "β Medium Priority", "π€ Low Priority"]'), github.event.label.name) | 31 | if: contains(fromJSON('["π©βπ» Good First Issue", "π Help Wanted", "πͺ² Confirmed", "β οΈ High Priority", "β Medium Priority", "π€ Low Priority"]'), github.event.label.name) |
| 32 | # π€ Issues Helper | ||
| 33 | # https://github.com/marketplace/actions/issues-helper | ||
| 32 | uses: actions-cool/issues-helper@v3 | 34 | uses: actions-cool/issues-helper@v3 |
| 33 | with: | 35 | with: |
| 34 | actions: 'add-labels' | 36 | actions: 'add-labels' |
| 35 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 37 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 36 | labels: 'π Approved' | 38 | labels: 'π Approved' |
| 37 | 39 | ||
| 38 | - name: β Remove progress labels when PR/issue is marked done or stale | 40 | - name: β Remove progress labels when issue is marked done or stale |
| 39 | if: contains(fromJSON('["β Done", "β Done (staging)", "β°οΈ Stale", "β wontfix"]'), github.event.label.name) | 41 | if: contains(fromJSON('["β Done", "β Done (staging)", "β°οΈ Stale", "β wontfix"]'), github.event.label.name) |
| 42 | # π€ Issues Helper | ||
| 43 | # https://github.com/marketplace/actions/issues-helper | ||
| 40 | uses: actions-cool/issues-helper@v3 | 44 | uses: actions-cool/issues-helper@v3 |
| 41 | with: | 45 | with: |
| 42 | actions: 'remove-labels' | 46 | actions: 'remove-labels' |
| @@ -45,6 +49,8 @@ jobs: | |||
| 45 | 49 | ||
| 46 | - name: β Remove temporary labels when confirmed labels are added | 50 | - name: β Remove temporary labels when confirmed labels are added |
| 47 | if: contains(fromJSON('["β wontfix","π Approved","π©βπ» Good First Issue"]'), github.event.label.name) | 51 | if: contains(fromJSON('["β wontfix","π Approved","π©βπ» Good First Issue"]'), github.event.label.name) |
| 52 | # π€ Issues Helper | ||
| 53 | # https://github.com/marketplace/actions/issues-helper | ||
| 48 | uses: actions-cool/issues-helper@v3 | 54 | uses: actions-cool/issues-helper@v3 |
| 49 | with: | 55 | with: |
| 50 | actions: 'remove-labels' | 56 | actions: 'remove-labels' |
| @@ -53,15 +59,17 @@ jobs: | |||
| 53 | 59 | ||
| 54 | - name: β Remove no bug labels when "πͺ² Confirmed" is added | 60 | - name: β Remove no bug labels when "πͺ² Confirmed" is added |
| 55 | if: github.event.label.name == 'πͺ² Confirmed' | 61 | if: github.event.label.name == 'πͺ² Confirmed' |
| 62 | # π€ Issues Helper | ||
| 63 | # https://github.com/marketplace/actions/issues-helper | ||
| 56 | uses: actions-cool/issues-helper@v3 | 64 | uses: actions-cool/issues-helper@v3 |
| 57 | with: | 65 | with: |
| 58 | actions: 'remove-labels' | 66 | actions: 'remove-labels' |
| 59 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 67 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 60 | labels: 'βοΈ Not Reproducible,βοΈ Not A Bug' | 68 | labels: 'βοΈ Not Reproducible,βοΈ Not A Bug' |
| 61 | 69 | ||
| 62 | issue-auto-comments: | 70 | write-auto-comments: |
| 63 | name: Post Issue Comments Based on Labels | 71 | name: Post Issue Comments Based on Labels |
| 64 | needs: [issue-label-on-content, issue-label-on-labels] | 72 | needs: [label-on-content, label-on-labels] |
| 65 | runs-on: ubuntu-latest | 73 | runs-on: ubuntu-latest |
| 66 | 74 | ||
| 67 | steps: | 75 | steps: |
| @@ -43,7 +43,7 @@ jobs: | |||
| 43 | owner, | 43 | owner, |
| 44 | repo, | 44 | repo, |
| 45 | issue_number, | 45 | issue_number, |
| 46 | labels: ['Maintainer'], | 46 | labels: ['π· Maintainer'], |
| 47 | }); | 47 | }); |
| 48 | } else { | 48 | } else { |
| 49 | console.log(`User ${username} is not a repo maintainer.`); | 49 | console.log(`User ${username} is not a repo maintainer.`); |