Skip to content

Commit db6186f

Browse files
committed
feat(workflows): add gh-aw intake automation workflows (phase 1)
Five agentic workflows compiled with gh-aw v0.81.6, per docs/plans/gh-aw-intake-automation.md: - pr-reviewer: lane-aware verdict-first first-pass review of same-repo PRs (opened/ready_for_review + /review), live comments and labels - pr-reviewer-external: same review for fork PRs; comments staged for team audit during rollout, labels live - backlog-sweeper: weekday sweep of the oldest unreviewed open PRs with evidence-based recommend-close labeling (staged comments, never closes) - issue-triager: labels-only classification and routing of new issues - team-digest: weekday Discord digest (merge-ready, review queue by lane, SLA breaches, close queue, unanswered external issues) All run the Claude engine read-only under strict mode with writes gated through safe-outputs, a 30-day stop-after dead-man switch, and SHA-pinned actions/containers.
1 parent 45ca73a commit db6186f

15 files changed

Lines changed: 9817 additions & 0 deletions

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ README.md linguist-documentation
44
*.md linguist-generated=false
55
*.md linguist-documentation=false
66
*.md linguist-detectable=true
7+
8+
.github/workflows/*.lock.yml linguist-generated=true merge=ours

.github/aw/actions-lock.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"entries": {
3+
"github/gh-aw-actions/setup-cli@v0.81.6": {
4+
"repo": "github/gh-aw-actions/setup-cli",
5+
"version": "v0.81.6",
6+
"sha": "ba6380cc6e5be5d21677bebe04d52fb48e3abec7"
7+
},
8+
"github/gh-aw-actions/setup@v0.81.6": {
9+
"repo": "github/gh-aw-actions/setup",
10+
"version": "v0.81.6",
11+
"sha": "ba6380cc6e5be5d21677bebe04d52fb48e3abec7"
12+
}
13+
}
14+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# gh-aw-commands: {"payload_version":"v1","schema_version":"v1","compiler_version":"v0.81.6","commands":["review"],"workflows":["pr-reviewer"]}
2+
# Routing summary (sorted):
3+
# slash commands:
4+
# /review -> pr-reviewer [pull_request_comment] reaction=eyes
5+
# labels:
6+
# (none)
7+
# This file was automatically generated by gh-aw (v0.81.6). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
8+
#
9+
# ___ _ _
10+
# / _ \ | | (_)
11+
# | |_| | __ _ ___ _ __ | |_ _ ___
12+
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
13+
# | | | | (_| | __/ | | | |_| | (__
14+
# \_| |_/\__, |\___|_| |_|\__|_|\___|
15+
# __/ |
16+
# _ _ |___/
17+
# | | | | / _| |
18+
# | | | | ___ _ __ _ __| |_| | _____ ____
19+
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
20+
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
21+
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
22+
#
23+
#
24+
# To regenerate this workflow, run:
25+
# gh aw compile
26+
# Not all edits will cause changes to this file.
27+
#
28+
# For more information: https://github.github.com/gh-aw/introduction/overview/
29+
#
30+
name: "Agentic Commands"
31+
32+
on:
33+
issue_comment:
34+
types: [created, edited]
35+
36+
permissions: {}
37+
38+
jobs:
39+
route:
40+
runs-on: ubuntu-slim
41+
timeout-minutes: 15
42+
permissions:
43+
actions: write
44+
contents: read
45+
issues: write
46+
pull-requests: write
47+
48+
steps:
49+
- name: Checkout repository
50+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
51+
52+
- name: Setup Scripts
53+
uses: github/gh-aw-actions/setup@v0.81.6
54+
with:
55+
destination: ${{ runner.temp }}/gh-aw/actions
56+
57+
- name: Route slash command
58+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
59+
env:
60+
GH_AW_SLASH_ROUTING: '{"review":[{"workflow":"pr-reviewer","events":["pull_request_comment"],"ai_reaction":"eyes","status_comment":true}]}'
61+
GH_AW_LABEL_ROUTING: '{}'
62+
GH_AW_HELP_COMMANDS: '[{"command":"review","description":"Lane-aware, verdict-first first-pass review of same-repo pull requests","centralized":true,"decentralized":false,"source_file":"pr-reviewer"}]'
63+
GH_AW_HELP_COMMAND_ENABLED: 'true'
64+
GH_AW_SLASH_COMMAND_DOCS_URL: 'https://github.github.com/gh-aw/reference/command-triggers/'
65+
with:
66+
script: |
67+
const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
68+
setupGlobals(core, github, context, exec, io, getOctokit);
69+
const { main } = require('${{ runner.temp }}/gh-aw/actions/route_slash_command.cjs');
70+
await main();

0 commit comments

Comments
 (0)