mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 06:41:51 +02:00
Merge pull request #2044 from alexbelgium/codex/adapt-ai-triage-automation-for-bug-label
Limit AI triage to bug issues
This commit is contained in:
17
.github/workflows/ai-triage.yml
vendored
17
.github/workflows/ai-triage.yml
vendored
@@ -16,11 +16,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Run when: issue opened OR a '/codex' comment on an issue (not PR)
|
# Run when: issue opened OR a '/codex' comment on an issue (not PR)
|
||||||
if: >
|
if: >
|
||||||
github.event_name == 'issues' ||
|
(github.event_name == 'issues' ||
|
||||||
(github.event_name == 'issue_comment' &&
|
(github.event_name == 'issue_comment' &&
|
||||||
github.event.action == 'created' &&
|
github.event.action == 'created' &&
|
||||||
github.event.comment.body == '/codex' &&
|
github.event.comment.body == '/codex' &&
|
||||||
github.event.issue.pull_request == null)
|
github.event.issue.pull_request == null))
|
||||||
|
&& contains(github.event.issue.labels.*.name, 'bug')
|
||||||
steps:
|
steps:
|
||||||
- name: Compose and post AI reply
|
- name: Compose and post AI reply
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
@@ -41,8 +42,9 @@ jobs:
|
|||||||
|
|
||||||
const system = `
|
const system = `
|
||||||
You are an open-source triage assistant.
|
You are an open-source triage assistant.
|
||||||
Write a concise, actionable first reply for a new GitHub issue.
|
Write a concise, actionable first reply for a new bug report.
|
||||||
Ask for missing repro details; avoid inventing repo facts.
|
Focus on diagnosing the problem and suggesting potential fixes.
|
||||||
|
Minimize follow-up questions and avoid inventing repo facts.
|
||||||
Propose next steps and link to repo files only when certain.
|
Propose next steps and link to repo files only when certain.
|
||||||
`.trim();
|
`.trim();
|
||||||
|
|
||||||
@@ -102,6 +104,7 @@ jobs:
|
|||||||
github.event.comment.body == '/codex' &&
|
github.event.comment.body == '/codex' &&
|
||||||
github.event.issue.pull_request == null))
|
github.event.issue.pull_request == null))
|
||||||
&& contains(github.event.issue.labels.*.name, 'auto-pr')
|
&& contains(github.event.issue.labels.*.name, 'auto-pr')
|
||||||
|
&& contains(github.event.issue.labels.*.name, 'bug')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user