Skip to content

Commit 2f99d70

Browse files
authored
fix: configure start workspace action after version upgrade (#17398)
Dependabot recently upgraded `coder/start-workspace-action` to the latest version. Compared to the version we were using previously, the new version expects a different configuration.
1 parent fa594f4 commit 2f99d70

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)
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