Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acf54e2

Browse files
committed
fix action parameters after version upgrade
1 parent fa594f4 commit acf54e2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/start-workspace.yaml

+8-3
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)