Skip to content
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/drafter.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .github/workflows/drafter.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
with:
client-id: ${{ vars.GH_AW_APP_CLIENT_ID }}
private-key: ${{ secrets.GH_AW_APP_PRIVATE_KEY }}
- name: Add agent/draft-working label
- name: Add agent/drafter-working label
# ISSUE_NUMBER/REPO must be passed via env: rather than inlined
# directly into the run: script below (as `${{ github.* }}`): gh-aw's
# compiler sanitizes any inline `${{ github.* }}` expressions it
Expand All @@ -101,7 +101,7 @@ jobs:
REPO: ${{ github.repository }}
run: |
set -euo pipefail
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --add-label agent/draft-working || true
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --add-label agent/drafter-working || true
remove_working_label:
needs: [pre_activation, activation, agent, detection, safe_outputs]
# Only tear down the label this same run put up: gating on this run's own
Expand All @@ -121,15 +121,15 @@ jobs:
with:
client-id: ${{ vars.GH_AW_APP_CLIENT_ID }}
private-key: ${{ secrets.GH_AW_APP_PRIVATE_KEY }}
- name: Remove agent/draft-working label (best-effort)
# See the "Add agent/draft-working label" step above for why
- name: Remove agent/drafter-working label (best-effort)
# See the "Add agent/drafter-working label" step above for why
# ISSUE_NUMBER/REPO are passed via env: instead of inlined in run:.
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
run: |
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --remove-label agent/draft-working || true
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --remove-label agent/drafter-working || true

timeout-minutes: 15
---
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/install-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
{ name: 'agent/code', description: 'Triggers the drafter agent', color: '0E8A16' },
{ name: 'agent/fixme', description: 'Reviewer agent found issues that need fixing', color: 'D93F0B' },
{ name: 'agent/lgtm', description: 'Reviewer agent approved; ready to auto-merge', color: '0E8A16' },
{ name: 'agent/draft-working', description: 'The drafter agent is actively working on this issue', color: 'FBCA04' },
{ name: 'agent/drafter-working', description: 'The drafter agent is actively working on this issue', color: 'FBCA04' },
{ name: 'agent/review-working', description: 'The review agent is actively working on this PR', color: 'FBCA04' },
{ name: 'agent/fix-working', description: 'The fix agent is actively working on this PR', color: 'FBCA04' },
{ name: 'agent/workflow-edits-allowed', description: 'Pre-authorizes agent runs to edit protected files without the request_review gate', color: '5319E7' },
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ A few things here are non-obvious and were hard-won getting this to actually wor
almost certainly why.
- **A per-workflow `agent/*-working` label is added and removed via frontmatter
`jobs:`, not safe-outputs.** Each workflow carries its own working label on the
issue/PR for the duration of a run — `agent/draft-working` (drafter.md),
issue/PR for the duration of a run — `agent/drafter-working` (drafter.md),
`agent/review-working` (review.md), `agent/fix-working` (fix.md) — using two custom
jobs declared directly in each `.md` file's `jobs:` block: `add_working_label`
(depends on `pre_activation`, which gh-aw's compiler automatically threads into
Expand Down Expand Up @@ -284,7 +284,7 @@ now at least readable by the agent, but it was never the intended recovery path.

## Repository setup checklist

1. Create eight labels: `agent/code`, `agent/fixme`, `agent/lgtm`, `agent/draft-working`,
1. Create eight labels: `agent/code`, `agent/fixme`, `agent/lgtm`, `agent/drafter-working`,
`agent/review-working`, `agent/fix-working`, `agent/workflow-edits-allowed`,
`agent/flake-tracker` (see "Letting the agent edit protected files" above). The three
`agent/*-working` labels just need to exist; their color is cosmetic (see "a per-workflow
Expand All @@ -302,7 +302,7 @@ now at least readable by the agent, but it was never the intended recovery path.
--description "Reviewer agent found issues that need fixing"
gh label create "agent/lgtm" --color 0E8A16 \
--description "Reviewer agent approved; ready to auto-merge"
gh label create "agent/draft-working" --color FBCA04 \
gh label create "agent/drafter-working" --color FBCA04 \
--description "The drafter agent is actively working on this issue"
gh label create "agent/review-working" --color FBCA04 \
--description "The review agent is actively working on this PR"
Expand Down
4 changes: 2 additions & 2 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The script creates or updates the following labels:

- **`agent/lgtm`** (green) — Applied by the review workflow when a PR is approved and ready to merge. The merge workflow automatically merges PRs with this label.

- **`agent/draft-working`**, **`agent/review-working`**, **`agent/fix-working`** (yellow) — Indicates that the corresponding agent (drafter, review, or fix) is actively working on the issue or PR. Per-workflow labels avoid one workflow's cleanup clearing another's still-in-progress signal on the same PR.
- **`agent/drafter-working`**, **`agent/review-working`**, **`agent/fix-working`** (yellow) — Indicates that the corresponding agent (drafter, review, or fix) is actively working on the issue or PR. Per-workflow labels avoid one workflow's cleanup clearing another's still-in-progress signal on the same PR.

- **`agent/workflow-edits-allowed`** (purple) — Pre-authorizes an agent run to edit protected files (workflows, README, etc.) without triggering the request_review gate. Apply this to an issue before labeling it `agent/code`, or to a PR before applying `agent/fixme`.

Expand Down Expand Up @@ -66,7 +66,7 @@ gh label create "agent/fixme" --color D93F0B \
gh label create "agent/lgtm" --color 0E8A16 \
--description "Reviewer agent approved; ready to auto-merge"

gh label create "agent/draft-working" --color FBCA04 \
gh label create "agent/drafter-working" --color FBCA04 \
--description "The drafter agent is actively working on this issue"

gh label create "agent/review-working" --color FBCA04 \
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const LABELS = [
color: '0E8A16', // green
},
{
name: 'agent/draft-working',
name: 'agent/drafter-working',
description: 'The drafter agent is actively working on this issue',
color: 'FBCA04', // yellow
},
Expand Down