Skip to content

docs(issue-auto-implement): document workflows: write when implement … #19

docs(issue-auto-implement): document workflows: write when implement …

docs(issue-auto-implement): document workflows: write when implement … #19

# Label-triggered issue automation: assess, implement-verify loop, create PR or iterate on PR.

Check failure on line 1 in .github/workflows/issue-auto-implement.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/issue-auto-implement.yml

Invalid workflow file

(Line: 30, Col: 7): Unexpected value 'workflows'
# Triggers: issue labeled (automation/auto-implement), issue comment, PR review.
# Gate: set one of AUTO_IMPLEMENT_ALLOWED_TRIGGER_MIN_PERMISSION (e.g. push; works with default token) or AUTO_IMPLEMENT_ALLOWED_TRIGGER_TEAM (org/team; token needs read:org).
name: Issue auto-implement
on:
issues:
types: [labeled]
issue_comment:
types: [created]
pull_request_review:
types: [submitted]
pull_request_review_comment:
types: [created]
# Only run for the trigger label on issues (action will further filter issue_comment and PR events)
jobs:
run:
runs-on: ubuntu-latest
if: |
(github.event_name == 'issues' && github.event.label.name == 'automation/auto-implement') ||
github.event_name == 'issue_comment' ||
github.event_name == 'pull_request_review' ||
github.event_name == 'pull_request_review_comment'
permissions:
contents: write
issues: write
pull-requests: write
actions: write # trigger test workflow on PR branch so checks appear (PRs created by bot may not trigger pull_request)
workflows: write # allow push when implement touches .github/workflows/* (GitHub rejects workflow file changes without this)
# read:org only needed if using team check (AUTO_IMPLEMENT_ALLOWED_TRIGGER_TEAM)
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Issue auto-implement
uses: ./.github/actions/issue-auto-implement
with:
anthropic_api_key: ${{ secrets.AUTO_IMPLEMENT_ANTHROPIC_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
github_allowed_trigger_min_permission: ${{ vars.AUTO_IMPLEMENT_ALLOWED_TRIGGER_MIN_PERMISSION }}
github_allowed_trigger_team: ${{ vars.AUTO_IMPLEMENT_ALLOWED_TRIGGER_TEAM }}
# Skip acceptance tests in verify (they need HOOKDECK_CLI_TESTING_API_KEY); unit tests use -short
verify_commands: go test -short ./...