-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yaml
More file actions
78 lines (60 loc) · 1.9 KB
/
action.yaml
File metadata and controls
78 lines (60 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: "Coder Create Task"
description: "Create a Coder Task for a GitHub user, with support for issue commenting"
author: "Coder Technologies Inc. <https://coder.com>"
branding:
icon: arrow-down-circle
color: purple
inputs:
# Required inputs
coder-task-prompt:
description: "Prompt/instructions to send to the task"
required: true
coder-token:
description: "Coder session token for authentication"
required: true
coder-url:
description: "Coder deployment URL"
required: true
coder-template-name:
description: "Coder template to use for workspace"
required: true
github-issue-url:
description: "GitHub issue URL to link this task to"
required: true
github-token:
description: "GitHub token for API operations"
required: true
github-user-id:
description: "GitHub user ID to create task for. If provided, `coder-username` must not be set."
required: false
coder-username:
description: "Coder username to create task for. If provided, github-user-id must not be set. Useful for automated workflows without a triggering user."
required: false
# Optional inputs
coder-organization:
description: "Coder organization name"
required: false
default: "default"
coder-task-name-prefix:
description: "Prefix for task name"
required: false
default: "gh"
coder-template-preset:
description: "Template preset to use (optional)"
required: false
comment-on-issue:
description: "Whether to comment on the GitHub issue"
required: false
default: "true"
outputs:
coder-username:
description: "The Coder username resolved from GitHub user"
task-name:
description: "The task name"
task-url:
description: "The URL to view the task in Coder"
task-created:
description: "Whether the task was newly created (true) or already existed (false)"
runs:
using: "node20"
main: "dist/index.js"