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

Commit2f99d70

Browse files
authored
fix: configure start workspace action after version upgrade (#17398)
Dependabot recently upgraded `coder/start-workspace-action` to thelatest version. Compared to the version we were using previously, thenew version expects a different configuration.
1 parentfa594f4 commit2f99d70

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎.github/workflows/start-workspace.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,26 @@ permissions:
1212
jobs:
1313
comment:
1414
runs-on:ubuntu-latest
15+
if:>-
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@coder')) ||
17+
(github.event_name == 'issues' && contains(github.event.issue.body, '@coder'))
1518
environment:aidev
1619
timeout-minutes:5
1720
steps:
1821
-name:Start Coder workspace
1922
uses:coder/start-workspace-action@35a4608cefc7e8cc56573cae7c3b85304575cb72
2023
with:
2124
github-token:${{ secrets.GITHUB_TOKEN }}
22-
trigger-phrase:"@coder"
25+
github-username:>-
26+
${{
27+
(github.event_name == 'issue_comment' && github.event.comment.user.login) ||
28+
(github.event_name == 'issues' && github.event.issue.user.login)
29+
}}
2330
coder-url:${{ secrets.CODER_URL }}
2431
coder-token:${{ secrets.CODER_TOKEN }}
2532
template-name:${{ secrets.CODER_TEMPLATE_NAME }}
26-
workspace-name:issue-${{ github.event.issue.number }}
2733
parameters:|-
2834
Coder Image: codercom/oss-dogfood:latest
2935
Coder Repository Base Directory: "~"
3036
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."
3137
Region: us-pittsburgh
32-
user-mapping:${{ secrets.CODER_USER_MAPPING }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp