43
43
uses :coder/start-workspace-action@v0.1.0
44
44
with :
45
45
github-token :${{ secrets.GITHUB_TOKEN }}
46
- github-issue-number :${{ github.event.issue.number }}
47
46
github-username :>-
48
47
${{
49
48
(github.event_name == 'issue_comment' && github.event.comment.user.login) ||
52
51
coder-url :${{ secrets.CODER_URL }}
53
52
coder-token :${{ secrets.CODER_TOKEN }}
54
53
template-name :${{ secrets.CODER_TEMPLATE_NAME }}
55
- workspace-name :issue-${{ github.event.issue.number }}
56
54
parameters :|-
57
55
Coder Image: codercom/oss-dogfood:latest
58
56
Coder Repository Base Directory: "~"
@@ -62,17 +60,17 @@ jobs:
62
60
63
61
## Inputs
64
62
65
- | Input | Description | Required | Default |
66
- | --------------------- | ------------------------------------------------------------------------------------------------------- | -------- | --------------------- |
67
- |` github-token` | GitHub token for posting comments | No | `${{ github.token }}` |
68
- | `github-issue-number` | GitHub issue number where the status comment will be posted |Yes | - |
69
- | `github-username` | GitHub username of the user for whom the workspace is being started | No | - |
70
- | `coder-username` | Coder username to override default user mapping (only set one of `github-username` or `coder-username`) | No | - |
71
- | `coder-url` | Coder deployment URL | Yes | - |
72
- | `coder-token` | API token for Coder | Yes | - |
73
- | `template-name` | Name of the Coder template to use | Yes | - |
74
- | `workspace-name` | Name for the new workspace |Yes | - |
75
- | `parameters` | YAML-formatted parameters for the Coder workspace | Yes | - |
63
+ | Input | Description | Required | Default |
64
+ | --------------------- | ------------------------------------------------------------------------------------------------------- | -------- | --------------------------------- |
65
+ |` github-token` | GitHub token for posting comments | No | `${{ github.token }}` |
66
+ | `github-issue-number` | GitHub issue number where the status comment will be posted |No | Current issue from GitHub context |
67
+ | `github-username` | GitHub username of the user for whom the workspace is being started | No | - |
68
+ | `coder-username` | Coder username to override default user mapping (only set one of `github-username` or `coder-username`) | No | - |
69
+ | `coder-url` | Coder deployment URL | Yes | - |
70
+ | `coder-token` | API token for Coder | Yes | - |
71
+ | `template-name` | Name of the Coder template to use | Yes | - |
72
+ | `workspace-name` | Name for the new workspace |No | `issue-{issue_number}` |
73
+ | `parameters` | YAML-formatted parameters for the Coder workspace | Yes | - |
76
74
77
75
# # How It Works
78
76