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