Skip to content

Commit 1fe0e92

Browse files
committed
build: 📦 add Issue Completeness Check workflow
1 parent e06bbf7 commit 1fe0e92

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Issue Completeness Check
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
permissions:
8+
issues: write
9+
models: read
10+
11+
jobs:
12+
check-completeness:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check issue completeness
16+
uses: actions/ai-inference@v2
17+
id: ai
18+
with:
19+
prompt: |
20+
Analyze this GitHub issue for completeness. If missing reproduction steps, version info, or expected/actual behavior, respond with a friendly request for the missing info. If complete, say so.
21+
22+
Title: ${{ github.event.issue.title }}
23+
Body: ${{ github.event.issue.body }}
24+
system-prompt: You are a helpful assistant that helps analyze GitHub issues for completeness.
25+
model: openai/gpt-4o-mini
26+
27+
- name: Comment on issue
28+
if: steps.ai.outputs.response != ''
29+
uses: actions/github-script@v8
30+
with:
31+
script: |
32+
github.rest.issues.createComment({
33+
owner: context.repo.owner,
34+
repo: context.repo.repo,
35+
issue_number: ${{ github.event.issue.number }},
36+
body: `${{ steps.ai.outputs.response }}`
37+
})

0 commit comments

Comments
 (0)