File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments