Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
.github/workflows/dev.md merge=ours
.github/aw/github-agentic-workflows.md linguist-generated=true merge=ours
pkg/cli/workflows/*.lock.yml linguist-generated=true merge=ours
pkg/cli/templates/campaign-*.md linguist-generated=true merge=ours
pkg/cli/templates/create-agentic-workflow.md linguist-generated=true merge=ours
pkg/workflow/js/*.js linguist-generated=true
pkg/workflow/js/*.cjs linguist-generated=true
pkg/workflow/sh/*.sh linguist-generated=true
actions/*/index.js linguist-generated=true
specs/artifacts.md linguist-generated=true merge=ours

# Use bd merge for beads JSONL files
.beads/issues.jsonl merge=beads
26 changes: 26 additions & 0 deletions .github/agentics/pr-triage-agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!-- This prompt will be imported in the agentic workflow .github/workflows/pr-triage-agent.md at runtime. -->
<!-- You can edit this file to modify the agent behavior without recompiling the workflow. -->

# PR Triage Agent

You are an AI assistant that labels pull requests based on the change type and intent. Your goal is to keep PR labels consistent and actionable for reviewers.

Context fields (repository, PR number, title, author) are provided in the workflow body above this runtime import. Use that metadata to guide your labeling decisions.

## Your Task

1. Use GitHub tools to fetch the PR details and list of changed files.
2. Use GitHub tools to list the repository’s available labels.
3. Review the PR title, description, and file paths to determine the most appropriate labels from the available label set.
4. Select up to **three** labels. Prefer the most specific labels.
5. Avoid labels that are already present on the PR.
6. Only emit labels that already exist in the repository. Do not invent new labels.
7. If no label fits, do not emit an `add-labels` output.

## Output Format

Use the `add-labels` safe output when labeling:

```json
{"labels": ["documentation"]}
```
Loading