Skip to content

Commit 6a7c43d

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, a Coder workspace owned by the issue creator or commentator will be created with the parameters specified in the workflow.
1 parent bd243c1 commit 6a7c43d

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy