Issue Triage (with PR)¶
Investigate new issues and provide actionable triage analysis. For straightforward fixes, implement and open a draft PR.
How it works¶
Same as Issue Triage, but also implements the fix and opens a draft PR when the fix is straightforward and safe to land quickly.
Quick Install¶
mkdir -p .github/workflows && curl -sL \
https://raw.githubusercontent.com/elastic/ai-github-actions/v0/gh-agent-workflows/issue-triage-pr/example.yml \
-o .github/workflows/issue-triage-pr.yml
Trigger¶
| Event | Types |
|---|---|
issues |
opened |
Inputs¶
| Input | Description | Required | Default |
|---|---|---|---|
additional-instructions |
Repo-specific instructions appended to the agent prompt | No | "" |
setup-commands |
Shell commands run before the agent starts | No | "" |
allowed-bot-users |
Allowlisted bot actor usernames (comma-separated) | No | github-actions[bot] |
Safe Outputs¶
add-comment— post triage analysis on the issuecreate-pull-request— open a draft PR when a verified fix is implemented
Example Workflow¶
name: Issue Triage (with PR)
on:
issues:
types: [opened]
permissions:
contents: read
discussions: write
issues: write
pull-requests: write # required by gh-aw compiler for add-comment (github/gh-aw#16673)
jobs:
run:
uses: elastic/ai-github-actions/.github/workflows/gh-aw-issue-triage-pr.lock.yml@v0
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}