Commit 13ea0f1
authored
Fix workflow permissions for Copilot coding agent (#248)
* Fix Copilot coding agent assignment using GraphQL API
- Update workflow permissions to include pull-requests:write and actions:read
- Rewrite assign_to_copilot() to use GraphQL API with required feature headers
- Add helper methods to get Copilot bot ID and issue/repo IDs
- Use addAssigneesToAssignable mutation with agentAssignment input
- Include GraphQL-Features header for Copilot assignment API support
Fixes HTTP 403 error when assigning issues to Copilot coding agent.
* permissions
* Test contents:write permission for Copilot assignment1 parent e872d44 commit 13ea0f1
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
0 commit comments