Skip to content

Commit 62f7ed6

Browse files
committed
add the start workspace workflow
1 parent 3ac844a commit 62f7ed6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Start Workspace On Issue Creation or Comment
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
issue_comment:
7+
types: [created]
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
comment:
14+
runs-on: ubuntu-latest
15+
environment: aidev
16+
steps:
17+
- name: Start Coder workspace
18+
uses: coder/start-workspace-action@26d3600161d67901f24d8612793d3b82771cde2d
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
trigger-phrase: "@coder"
22+
coder-url: ${{ secrets.CODER_URL }}
23+
coder-token: ${{ secrets.CODER_TOKEN }}
24+
template-name: ${{ secrets.CODER_TEMPLATE_NAME }}
25+
workspace-name: issue-${{ github.event.issue.number }}
26+
parameters: |-
27+
Coder Image: codercom/oss-dogfood:latest
28+
Coder Repository Base Directory: "~"
29+
AI Code Prompt: "Use the gh CLI tool to read the details of issue https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }} and then address it."
30+
Region: us-pittsburgh
31+
user-mapping: ${{ secrets.CODER_USER_MAPPING }}

0 commit comments

Comments
 (0)