Workflows ensure explicit versions of actions
| @@ -20,7 +20,7 @@ jobs: | ||
| 20 | 20 | - name: Checkout Repository |
| 21 | 21 | # Checkout |
| 22 | 22 | # https://github.com/marketplace/actions/checkout |
| 23 | 23 | uses: actions/checkout@v4.2.2 |
| 24 | 24 | |
| 25 | 25 | - name: Auto-Label Issues (Based on Issue Content) |
| 26 | 26 | # only auto label based on issue content once, on open (to prevent re-labeling removed labels) |
| @@ -28,7 +28,7 @@ jobs: | ||
| 28 | 28 | |
| 29 | 29 | # Issue Labeler |
| 30 | 30 | # https://github.com/marketplace/actions/regex-issue-labeler |
| 31 | 31 | uses: github/issue-labeler@v3.4 |
| 32 | 32 | with: |
| 33 | 33 | configuration-path: .github/issues-auto-labels.yml |
| 34 | 34 | enable-versioned-regex: 0 |
| @@ -43,7 +43,7 @@ jobs: | ||
| 43 | 43 | if: contains(fromJSON('["π©βπ» Good First Issue", "π Help Wanted", "πͺ² Confirmed", "β οΈ High Priority", "β Medium Priority", "π€ Low Priority"]'), github.event.label.name) |
| 44 | 44 | # π€ Issues Helper |
| 45 | 45 | # https://github.com/marketplace/actions/issues-helper |
| 46 | 46 | uses: actions-cool/issues-helper@v3.6.0 |
| 47 | 47 | with: |
| 48 | 48 | actions: 'add-labels' |
| 49 | 49 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -53,7 +53,7 @@ jobs: | ||
| 53 | 53 | if: contains(fromJSON('["β Done", "β Done (staging)", "β°οΈ Stale", "β wontfix"]'), github.event.label.name) |
| 54 | 54 | # π€ Issues Helper |
| 55 | 55 | # https://github.com/marketplace/actions/issues-helper |
| 56 | 56 | uses: actions-cool/issues-helper@v3.6.0 |
| 57 | 57 | with: |
| 58 | 58 | actions: 'remove-labels' |
| 59 | 59 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -63,7 +63,7 @@ jobs: | ||
| 63 | 63 | if: contains(fromJSON('["β wontfix","π Approved","π©βπ» Good First Issue"]'), github.event.label.name) |
| 64 | 64 | # π€ Issues Helper |
| 65 | 65 | # https://github.com/marketplace/actions/issues-helper |
| 66 | 66 | uses: actions-cool/issues-helper@v3.6.0 |
| 67 | 67 | with: |
| 68 | 68 | actions: 'remove-labels' |
| 69 | 69 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -73,7 +73,7 @@ jobs: | ||
| 73 | 73 | if: github.event.label.name == 'πͺ² Confirmed' |
| 74 | 74 | # π€ Issues Helper |
| 75 | 75 | # https://github.com/marketplace/actions/issues-helper |
| 76 | 76 | uses: actions-cool/issues-helper@v3.6.0 |
| 77 | 77 | with: |
| 78 | 78 | actions: 'remove-labels' |
| 79 | 79 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -89,7 +89,7 @@ jobs: | ||
| 89 | 89 | - name: Remove Stale Label |
| 90 | 90 | # π€ Issues Helper |
| 91 | 91 | # https://github.com/marketplace/actions/issues-helper |
| 92 | 92 | uses: actions-cool/issues-helper@v3.6.0 |
| 93 | 93 | with: |
| 94 | 94 | actions: 'remove-labels' |
| 95 | 95 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -105,12 +105,12 @@ jobs: | ||
| 105 | 105 | - name: Checkout Repository |
| 106 | 106 | # Checkout |
| 107 | 107 | # https://github.com/marketplace/actions/checkout |
| 108 | 108 | uses: actions/checkout@v4.2.2 |
| 109 | 109 | |
| 110 | 110 | - name: Post Issue Comments Based on Labels |
| 111 | 111 | # Label Commenter |
| 112 | 112 | # https://github.com/marketplace/actions/label-commenter |
| 113 | 113 | uses: peaceiris/actions-label-commenter@v1.10.0 |
| 114 | 114 | with: |
| 115 | 115 | config_file: .github/issues-auto-comments.yml |
| 116 | 116 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -20,7 +20,7 @@ jobs: | ||
| 20 | 20 | - name: Checkout Repository |
| 21 | 21 | # Checkout |
| 22 | 22 | # https://github.com/marketplace/actions/checkout |
| 23 | 23 | uses: actions/checkout@v4.2.2 |
| 24 | 24 | |
| 25 | 25 | - name: Extract Linked Issues from Commit Message |
| 26 | 26 | id: extract_issues |
| @@ -20,7 +20,7 @@ jobs: | ||
| 20 | 20 | - name: Mark Issues/PRs without Activity |
| 21 | 21 | # Close Stale Issues and PRs |
| 22 | 22 | # https://github.com/marketplace/actions/close-stale-issues |
| 23 | 23 | uses: actions/stale@v9.1.0 |
| 24 | 24 | with: |
| 25 | 25 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 26 | 26 | days-before-stale: 183 |
| @@ -54,7 +54,7 @@ jobs: | ||
| 54 | 54 | - name: Mark Issues/PRs Awaiting User Response |
| 55 | 55 | # Close Stale Issues and PRs |
| 56 | 56 | # https://github.com/marketplace/actions/close-stale-issues |
| 57 | 57 | uses: actions/stale@v9.1.0 |
| 58 | 58 | with: |
| 59 | 59 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 60 | 60 | days-before-stale: 7 |
| @@ -81,7 +81,7 @@ jobs: | ||
| 81 | 81 | - name: Mark Issues with Alternative Exists |
| 82 | 82 | # Close Stale Issues and PRs |
| 83 | 83 | # https://github.com/marketplace/actions/close-stale-issues |
| 84 | 84 | uses: actions/stale@v9.1.0 |
| 85 | 85 | with: |
| 86 | 86 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 87 | 87 | days-before-stale: 7 |
| @@ -20,7 +20,7 @@ jobs: | ||
| 20 | 20 | - name: Remove Pending Labels on Close |
| 21 | 21 | # π€ Issues Helper |
| 22 | 22 | # https://github.com/marketplace/actions/issues-helper |
| 23 | 23 | uses: actions-cool/issues-helper@v3.6.0 |
| 24 | 24 | with: |
| 25 | 25 | actions: remove-labels |
| 26 | 26 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -21,7 +21,7 @@ jobs: | ||
| 21 | 21 | - name: Label if Author is a Repo Maintainer |
| 22 | 22 | # π€ Issues Helper |
| 23 | 23 | # https://github.com/marketplace/actions/issues-helper |
| 24 | 24 | uses: actions-cool/issues-helper@v3.6.0 |
| 25 | 25 | with: |
| 26 | 26 | actions: 'add-labels' |
| 27 | 27 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -19,7 +19,7 @@ jobs: | ||
| 19 | 19 | - name: Label PR Size |
| 20 | 20 | # Pull Request Size Labeler |
| 21 | 21 | # https://github.com/marketplace/actions/pull-request-size-labeler |
| 22 | 22 | uses: codelytv/pr-size-labeler@v1.10.2 |
| 23 | 23 | with: |
| 24 | 24 | GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 25 | 25 | xs_label: 'π© ⬀ββββ' |
| @@ -47,12 +47,12 @@ jobs: | ||
| 47 | 47 | - name: Checkout Repository |
| 48 | 48 | # Checkout |
| 49 | 49 | # https://github.com/marketplace/actions/checkout |
| 50 | 50 | uses: actions/checkout@v4.2.2 |
| 51 | 51 | |
| 52 | 52 | - name: Apply Labels Based on Branch Name and Target Branch |
| 53 | 53 | # Pull Request Labeler |
| 54 | 54 | # https://github.com/marketplace/actions/labeler |
| 55 | 55 | uses: actions/labeler@v5.0.0 |
| 56 | 56 | with: |
| 57 | 57 | configuration-path: .github/pr-auto-labels-by-branch.yml |
| 58 | 58 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -65,12 +65,12 @@ jobs: | ||
| 65 | 65 | - name: Checkout Repository |
| 66 | 66 | # Checkout |
| 67 | 67 | # https://github.com/marketplace/actions/checkout |
| 68 | 68 | uses: actions/checkout@v4.2.2 |
| 69 | 69 | |
| 70 | 70 | - name: Apply Labels Based on Changed Files |
| 71 | 71 | # Pull Request Labeler |
| 72 | 72 | # https://github.com/marketplace/actions/labeler |
| 73 | 73 | uses: actions/labeler@v5.0.0 |
| 74 | 74 | with: |
| 75 | 75 | configuration-path: .github/pr-auto-labels-by-files.yml |
| 76 | 76 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -85,7 +85,7 @@ jobs: | ||
| 85 | 85 | - name: Remove Stale Label |
| 86 | 86 | # π€ Issues Helper |
| 87 | 87 | # https://github.com/marketplace/actions/issues-helper |
| 88 | 88 | uses: actions-cool/issues-helper@v3.6.0 |
| 89 | 89 | with: |
| 90 | 90 | actions: 'remove-labels' |
| 91 | 91 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -108,9 +108,9 @@ jobs: | ||
| 108 | 108 | steps: |
| 109 | 109 | - name: Check Merge Blocking |
| 110 | 110 | # GitHub Script |
| 111 | 111 | # https://github.com/marketplace/actions/github-scriptLabelsscript |
| 112 | 112 | id: label-check |
| 113 | 113 | uses: actions/github-script@v7.0.1 |
| 114 | 114 | with: |
| 115 | 115 | script: | |
| 116 | 116 | const prLabels = context.payload.pull_request.labels.map(label => label.name); |
| @@ -153,12 +153,12 @@ jobs: | ||
| 153 | 153 | - name: Checkout Repository |
| 154 | 154 | # Checkout |
| 155 | 155 | # https://github.com/marketplace/actions/checkout |
| 156 | 156 | uses: actions/checkout@v4.2.2 |
| 157 | 157 | |
| 158 | 158 | - name: Post PR Comments Based on Labels |
| 159 | 159 | # Label Commenter for PRs |
| 160 | 160 | # https://github.com/marketplace/actions/label-commenter |
| 161 | 161 | uses: peaceiris/actions-label-commenter@v1.10.0 |
| 162 | 162 | with: |
| 163 | 163 | config_file: .github/pr-auto-comments.yml |
| 164 | 164 | github_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| @@ -20,7 +20,7 @@ jobs: | ||
| 20 | 20 | - name: Check Merge Conflicts |
| 21 | 21 | # Label Conflicting Pull Requests |
| 22 | 22 | # https://github.com/marketplace/actions/label-conflicting-pull-requests |
| 23 | 23 | uses: eps1lon/actions-label-merge-conflict@v3.0.3 |
| 24 | 24 | with: |
| 25 | 25 | dirtyLabel: 'π« Merge Conflicts' |
| 26 | 26 | repoToken: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |