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
feat: add optional coder-username input for automated workflows (#7)
* feat: add optional coder-username input for automated workflows
Allow tasks to be created under a specific Coder user without requiring
a GitHub user ID lookup. This enables automated workflows (e.g., CI bots,
scheduled jobs) to run tasks under a service account.
- Add coder-username input, make github-user-id optional
- Skip API lookup when username is provided directly
- Either coder-username or github-user-id must be provided
* chore: rebuild dist
* chore: rebuild dist with latest bun version
* chore: add test for when coder username and github id are not provided
* fix: error when both coder-username and github-user-id are provided
* chore: rebuild dist
* fix: update error message test
* refactor: simplify user identification logic in CoderTaskAction by using union instead
* docs: update error responses
Copy file name to clipboardExpand all lines: action.yaml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,12 @@ inputs:
33
33
required: true
34
34
35
35
github-user-id:
36
-
description: "GitHub user ID to create task for"
37
-
required: true
36
+
description: "GitHub user ID to create task for. If provided, `coder-username` must not be set."
37
+
required: false
38
+
39
+
coder-username:
40
+
description: "Coder username to create task for. If provided, github-user-id must not be set. Useful for automated workflows without a triggering user."
0 commit comments