You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai-coder/github-to-tasks.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,15 +201,17 @@ This guide shows you how to automatically delegate routine engineering work to A
201
201
**Cause:** The user who triggered the workflow hasn't linked their GitHub account to Coder.
202
202
203
203
**Solution:**
204
+
204
205
1. Ensure GitHub OAuth is configured in your Coder deployment (see [External Authentication docs](https://coder.com/docs/admin/external-auth#configure-a-github-oauth-app))
205
-
2. Have the user visit `https://your-coder-url/settings/external-auth` and link their GitHub account
206
-
3. Retry the workflow by re-applying the `coder` label or however else the workflow is triggered
206
+
1. Have the user visit `https://your-coder-url/settings/external-auth` and link their GitHub account
207
+
1. Retry the workflow by re-applying the `coder` label or however else the workflow is triggered
207
208
208
209
### "Failed to create task: 403 Forbidden"
209
210
210
211
**Cause:** The `coder-token` doesn't have the required permissions.
211
212
212
213
**Solution:** The token must have:
214
+
213
215
-Read users in organization
214
216
-Create tasks for any user
215
217
@@ -220,15 +222,18 @@ Generate a new token with these permissions at `https://your-coder-url/deploymen
220
222
**Cause:** The `coder-template-name` is incorrect or the template doesn't exist in the specified organization.
221
223
222
224
**Solution:**
225
+
223
226
1. Verify the template name using:`coder templates list --org your-org-name`
224
-
2. Update the `coder-template-name` input in your workflow file to match exactly, or input secret or variable saved in GitHub
225
-
3. Ensure the template exists in the organization specified by `coder-organization`
227
+
1. Update the `coder-template-name` input in your workflow file to match exactly, or input secret or variable saved in GitHub
228
+
1. Ensure the template exists in the organization specified by `coder-organization`
226
229
227
230
### Task fails with "authentication failed" or "Bad credentials" after running for hours
228
231
229
232
**Symptoms:**
233
+
230
234
-Task starts successfully and works initially
231
235
-After some time passes, `gh` CLI commands fail with: