Replace workflow secrets with automatic secret
| @@ -32,7 +32,7 @@ jobs: | |||
| 32 | with: | 32 | with: |
| 33 | configuration-path: .github/issues-auto-labels.yml | 33 | configuration-path: .github/issues-auto-labels.yml |
| 34 | enable-versioned-regex: 0 | 34 | enable-versioned-regex: 0 |
| 35 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 35 | repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 36 | 36 | ||
| 37 | label-on-labels: | 37 | label-on-labels: |
| 38 | name: π·οΈ Label Issues by Labels | 38 | name: π·οΈ Label Issues by Labels |
| @@ -46,7 +46,7 @@ jobs: | |||
| 46 | uses: actions-cool/issues-helper@v3.6.0 | 46 | uses: actions-cool/issues-helper@v3.6.0 |
| 47 | with: | 47 | with: |
| 48 | actions: 'add-labels' | 48 | actions: 'add-labels' |
| 49 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 49 | token: ${{ secrets.GITHUB_TOKEN }} |
| 50 | labels: 'π Approved' | 50 | labels: 'π Approved' |
| 51 | 51 | ||
| 52 | - name: β Remove progress labels when issue is marked done or stale | 52 | - name: β Remove progress labels when issue is marked done or stale |
| @@ -56,7 +56,7 @@ jobs: | |||
| 56 | uses: actions-cool/issues-helper@v3.6.0 | 56 | uses: actions-cool/issues-helper@v3.6.0 |
| 57 | with: | 57 | with: |
| 58 | actions: 'remove-labels' | 58 | actions: 'remove-labels' |
| 59 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 59 | token: ${{ secrets.GITHUB_TOKEN }} |
| 60 | labels: 'π§βπ» In Progress,π€ Unsure,π€ Under Consideration' | 60 | labels: 'π§βπ» In Progress,π€ Unsure,π€ Under Consideration' |
| 61 | 61 | ||
| 62 | - name: β Remove temporary labels when confirmed labels are added | 62 | - name: β Remove temporary labels when confirmed labels are added |
| @@ -66,7 +66,7 @@ jobs: | |||
| 66 | uses: actions-cool/issues-helper@v3.6.0 | 66 | uses: actions-cool/issues-helper@v3.6.0 |
| 67 | with: | 67 | with: |
| 68 | actions: 'remove-labels' | 68 | actions: 'remove-labels' |
| 69 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 69 | token: ${{ secrets.GITHUB_TOKEN }} |
| 70 | labels: 'π€ Unsure,π€ Under Consideration' | 70 | labels: 'π€ Unsure,π€ Under Consideration' |
| 71 | 71 | ||
| 72 | - name: β Remove no bug labels when "πͺ² Confirmed" is added | 72 | - name: β Remove no bug labels when "πͺ² Confirmed" is added |
| @@ -76,7 +76,7 @@ jobs: | |||
| 76 | uses: actions-cool/issues-helper@v3.6.0 | 76 | uses: actions-cool/issues-helper@v3.6.0 |
| 77 | with: | 77 | with: |
| 78 | actions: 'remove-labels' | 78 | actions: 'remove-labels' |
| 79 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 79 | token: ${{ secrets.GITHUB_TOKEN }} |
| 80 | labels: 'βοΈ Not Reproducible,βοΈ Not A Bug' | 80 | labels: 'βοΈ Not Reproducible,βοΈ Not A Bug' |
| 81 | 81 | ||
| 82 | remove-stale-label: | 82 | remove-stale-label: |
| @@ -92,7 +92,7 @@ jobs: | |||
| 92 | uses: actions-cool/issues-helper@v3.6.0 | 92 | uses: actions-cool/issues-helper@v3.6.0 |
| 93 | with: | 93 | with: |
| 94 | actions: 'remove-labels' | 94 | actions: 'remove-labels' |
| 95 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 95 | token: ${{ secrets.GITHUB_TOKEN }} |
| 96 | issue-number: ${{ github.event.issue.number }} | 96 | issue-number: ${{ github.event.issue.number }} |
| 97 | labels: 'β°οΈ Stale,πΈοΈ Inactive,π Awaiting User Response,π No Response' | 97 | labels: 'β°οΈ Stale,πΈοΈ Inactive,π Awaiting User Response,π No Response' |
| 98 | 98 | ||
| @@ -113,4 +113,4 @@ jobs: | |||
| 113 | uses: peaceiris/actions-label-commenter@v1.10.0 | 113 | uses: peaceiris/actions-label-commenter@v1.10.0 |
| 114 | with: | 114 | with: |
| 115 | config_file: .github/issues-auto-comments.yml | 115 | config_file: .github/issues-auto-comments.yml |
| 116 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 116 | github_token: ${{ secrets.GITHUB_TOKEN }} |
| @@ -31,7 +31,7 @@ jobs: | |||
| 31 | - name: Label Linked Issues | 31 | - name: Label Linked Issues |
| 32 | id: label_linked_issues | 32 | id: label_linked_issues |
| 33 | env: | 33 | env: |
| 34 | GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 34 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 35 | run: | | 35 | run: | |
| 36 | for ISSUE in $(echo $issues | jq -r '.[]'); do | 36 | for ISSUE in $(echo $issues | jq -r '.[]'); do |
| 37 | if [ "${{ github.ref }}" == "refs/heads/staging" ]; then | 37 | if [ "${{ github.ref }}" == "refs/heads/staging" ]; then |
| @@ -22,7 +22,7 @@ jobs: | |||
| 22 | # https://github.com/marketplace/actions/close-stale-issues | 22 | # https://github.com/marketplace/actions/close-stale-issues |
| 23 | uses: actions/stale@v9.1.0 | 23 | uses: actions/stale@v9.1.0 |
| 24 | with: | 24 | with: |
| 25 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 25 | repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 26 | days-before-stale: 183 | 26 | days-before-stale: 183 |
| 27 | days-before-close: 7 | 27 | days-before-close: 7 |
| 28 | operations-per-run: 30 | 28 | operations-per-run: 30 |
| @@ -56,7 +56,7 @@ jobs: | |||
| 56 | # https://github.com/marketplace/actions/close-stale-issues | 56 | # https://github.com/marketplace/actions/close-stale-issues |
| 57 | uses: actions/stale@v9.1.0 | 57 | uses: actions/stale@v9.1.0 |
| 58 | with: | 58 | with: |
| 59 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 59 | repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 60 | days-before-stale: 7 | 60 | days-before-stale: 7 |
| 61 | days-before-close: 7 | 61 | days-before-close: 7 |
| 62 | operations-per-run: 30 | 62 | operations-per-run: 30 |
| @@ -83,7 +83,7 @@ jobs: | |||
| 83 | # https://github.com/marketplace/actions/close-stale-issues | 83 | # https://github.com/marketplace/actions/close-stale-issues |
| 84 | uses: actions/stale@v9.1.0 | 84 | uses: actions/stale@v9.1.0 |
| 85 | with: | 85 | with: |
| 86 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 86 | repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 87 | days-before-stale: 7 | 87 | days-before-stale: 7 |
| 88 | days-before-close: 7 | 88 | days-before-close: 7 |
| 89 | operations-per-run: 30 | 89 | operations-per-run: 30 |
| @@ -23,6 +23,6 @@ jobs: | |||
| 23 | uses: actions-cool/issues-helper@v3.6.0 | 23 | uses: actions-cool/issues-helper@v3.6.0 |
| 24 | with: | 24 | with: |
| 25 | actions: remove-labels | 25 | actions: remove-labels |
| 26 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 26 | token: ${{ secrets.GITHUB_TOKEN }} |
| 27 | issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} | 27 | issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} |
| 28 | labels: 'π Awaiting User Response,π§βπ» In Progress,π Keep Open,π« Merge Conflicts,π¬ Needs Testing,π¨ Needs Work,β°οΈ Stale,β Waiting For External/Upstream' | 28 | labels: 'π Awaiting User Response,π§βπ» In Progress,π Keep Open,π« Merge Conflicts,π¬ Needs Testing,π¨ Needs Work,β°οΈ Stale,β Waiting For External/Upstream' |
| @@ -24,6 +24,6 @@ jobs: | |||
| 24 | uses: actions-cool/issues-helper@v3.6.0 | 24 | uses: actions-cool/issues-helper@v3.6.0 |
| 25 | with: | 25 | with: |
| 26 | actions: 'add-labels' | 26 | actions: 'add-labels' |
| 27 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 27 | token: ${{ secrets.GITHUB_TOKEN }} |
| 28 | issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} | 28 | issue-number: ${{ github.event.issue.number || github.event.pull_request.number }} |
| 29 | labels: 'π· Maintainer' | 29 | labels: 'π· Maintainer' |
| @@ -23,6 +23,6 @@ jobs: | |||
| 23 | uses: eps1lon/actions-label-merge-conflict@v3.0.3 | 23 | uses: eps1lon/actions-label-merge-conflict@v3.0.3 |
| 24 | with: | 24 | with: |
| 25 | dirtyLabel: 'π« Merge Conflicts' | 25 | dirtyLabel: 'π« Merge Conflicts' |
| 26 | repoToken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 26 | repoToken: ${{ secrets.GITHUB_TOKEN }} |
| 27 | commentOnDirty: > | 27 | commentOnDirty: > |
| 28 | β οΈ This PR has conflicts that need to be resolved before it can be merged. | 28 | β οΈ This PR has conflicts that need to be resolved before it can be merged. |