Skip to content

Commit c0aba64

Browse files
Create summary.yml
1 parent 8fb8f1e commit c0aba64

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/summary.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Summarize new issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
summary:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
models: read
13+
contents: read
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Run AI inference
20+
id: inference
21+
uses: actions/ai-inference@v1
22+
with:
23+
prompt: |
24+
Summarize the following GitHub issue in one paragraph:
25+
Title: ${{ github.event.issue.title }}
26+
Body: ${{ github.event.issue.body }}
27+
28+
- name: Comment with AI summary
29+
run: |
30+
gh issue comment $ISSUE_NUMBER --body '${{ steps.inference.outputs.response }}'
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
ISSUE_NUMBER: ${{ github.event.issue.number }}
34+
RESPONSE: ${{ steps.inference.outputs.response }}

0 commit comments

Comments
 (0)