-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (24 loc) · 867 Bytes
/
copilot-comment.yml
File metadata and controls
28 lines (24 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on:
issue_comment:
types: [created]
jobs:
copilot:
if: ${{ startsWith(github.event.comment.body, '/copilot') }}
runs-on: ubuntu-latest
steps:
- name: Remove the /copilot prefix
id: sanitize
run: |
modified_comment=$(echo "${{ github.event.comment.body }}" | sed 's/\/copilot//')
echo "prompt=${modified_comment}" >> "$GITHUB_OUTPUT"
- name: Run Copilot
uses: austenstone/copilot-cli@main
with:
prompt: |
${{ steps.sanitize.outputs.prompt }}
At the start, acknowledge the issue comment by reacting with an emoji.
Once you have completed your task, please summarize the outcome and any relevant details by responding to the comment.
## Input Data
```json
${{ toJson(github.event) }}
```