|
20 | 20 | github.event_name == 'pull_request_target' && |
21 | 21 | github.actor != 'dependabot[bot]' && |
22 | 22 | github.actor != 'renovate[bot]' && |
23 | | - github.actor != 'githubactions[bot]' && |
| 23 | + github.actor != 'github-actions[bot]' && |
24 | 24 | github.actor != 'octokitbot' && |
25 | 25 | github.repository == 'integrations/terraform-provider-github' |
26 | 26 | runs-on: ubuntu-latest |
|
53 | 53 | github.event_name == 'issues' && |
54 | 54 | github.actor != 'dependabot[bot]' && |
55 | 55 | github.actor != 'renovate[bot]' && |
56 | | - github.actor != 'githubactions[bot]' && |
| 56 | + github.actor != 'github-actions[bot]' && |
57 | 57 | github.actor != 'octokitbot' && |
58 | 58 | github.repository == 'integrations/terraform-provider-github' |
59 | 59 | runs-on: ubuntu-latest |
|
63 | 63 | steps: |
64 | 64 | - name: Triage issue with Copilot |
65 | 65 | uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
| 66 | + env: |
| 67 | + GITHUB_TOKEN: ${{ github.token }} |
66 | 68 | with: |
67 | 69 | script: | |
68 | 70 | const issue = context.payload.issue; |
|
74 | 76 | if (title.startsWith('[BUG]')) issueType = 'bug'; |
75 | 77 | else if (title.startsWith('[FEAT]')) issueType = 'feature'; |
76 | 78 | else if (title.startsWith('[DOCS]')) issueType = 'documentation'; |
| 79 | + else if (title.startsWith('[MAINT]')) issueType = 'maintenance'; |
77 | 80 |
|
78 | 81 | // ── 2. Check template completeness ── |
79 | 82 | const missingRequired = []; |
@@ -168,7 +171,7 @@ jobs: |
168 | 171 | const affectedResources = resourceMatches ? [...new Set(resourceMatches)] : []; |
169 | 172 |
|
170 | 173 | // ── 4. Search for potential duplicates ── |
171 | | - const cleanTitle = title.replace(/^\[(BUG|FEAT|DOCS)\]\s*:?\s*/, '').trim(); |
| 174 | + const cleanTitle = title.replace(/^\[(BUG|FEAT|DOCS|MAINT)\]\s*:?\s*/, '').trim(); |
172 | 175 | const searchTerms = []; |
173 | 176 |
|
174 | 177 | // Build search queries from title keywords and resource names |
|
0 commit comments