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