Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a7c43d

Browse files
authored
chore: add the start workspace workflow (#17002)
The workflow triggers when an issue is created or a comment is posted.If the string "@coder" appears in the body of the issue or comment, aCoder workspace owned by the issue creator or commentator will becreated with the parameters specified in the workflow.
1 parentbd243c1 commit6a7c43d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
timeout-minutes:5
17+
steps:
18+
-name:Start Coder workspace
19+
uses:coder/start-workspace-action@26d3600161d67901f24d8612793d3b82771cde2d
20+
with:
21+
github-token:${{ secrets.GITHUB_TOKEN }}
22+
trigger-phrase:"@coder"
23+
coder-url:${{ secrets.CODER_URL }}
24+
coder-token:${{ secrets.CODER_TOKEN }}
25+
template-name:${{ secrets.CODER_TEMPLATE_NAME }}
26+
workspace-name:issue-${{ github.event.issue.number }}
27+
parameters:|-
28+
Coder Image: codercom/oss-dogfood:latest
29+
Coder Repository Base Directory: "~"
30+
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."
31+
Region: us-pittsburgh
32+
user-mapping:${{ secrets.CODER_USER_MAPPING }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp