Skip to content

Commit e49b2d0

Browse files
ggerganovCISC
authored andcommitted
ci : add action for finding duplicate issues (ggml-org#20756)
* ci : add action for finding duplicates issues * cont : gen info * cont : formatting * cont : fix * cont : instructions * cont : bump checkout action Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com> --------- Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
1 parent 0c36854 commit e49b2d0

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/ai-issues.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: AI review (issues)
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
find-duplicates:
9+
if: github.event.action == 'opened'
10+
runs-on: [self-hosted, opencode]
11+
12+
permissions:
13+
contents: read
14+
issues: write
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v6
19+
with:
20+
fetch-depth: 1
21+
22+
- name: Find duplicates
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
OPENCODE_PERMISSION: |
26+
{
27+
"bash": {
28+
"*": "deny",
29+
"gh issue*": "allow"
30+
},
31+
"webfetch": "deny"
32+
}
33+
run: |
34+
opencode run -m llama.cpp-dgx/gpt-oss-120b-hf-low "A new issue has been created:
35+
36+
Issue number: ${{ github.event.issue.number }}
37+
38+
Lookup this issue with gh issue view ${{ github.event.issue.number }}.
39+
40+
Perform the following task and then post a SINGLE comment (if needed).
41+
42+
---
43+
44+
TASK : DUPLICATE CHECK
45+
46+
Search through existing issues (excluding #${{ github.event.issue.number }}) to find potential duplicates.
47+
Consider:
48+
1. Similar titles or descriptions
49+
2. Same error messages or symptoms
50+
3. Related functionality or components
51+
4. Similar feature requests
52+
53+
---
54+
55+
POSTING YOUR COMMENT:
56+
57+
Based on your findings, post a SINGLE comment on issue #${{ github.event.issue.number }}. Build the comment as follows:
58+
59+
If no duplicates were found, do NOT comment at all.
60+
61+
If duplicates were found, include a section about potential duplicates with links using the following format:
62+
63+
[comment]
64+
This issue might be a duplicate of:
65+
- #[issue_number]: [brief description of similarity]
66+
67+
_This comment was auto-generated locally using **$GA_ENGINE** on **$GA_MACHINE**_
68+
[/comment]
69+
70+
Remember: Do not include the comment tags in your actual comment. Post at most ONE comment combining all findings. If everything is fine, post nothing.
71+
"

0 commit comments

Comments
 (0)