This repo hosts automated discussion labeling logic for githubnext/aw-community-discussions built with GitHub Agentic Workflows.
flowchart TD
A["Auto-labelling<br/>(daily)"] -- labels --> D["Discussions"]
D -- human corrects --> B["Correction Collector"]
B -- batches into --> C["Correction Feedback"]
C -- updates --> I["Instruction File"]
I -- guides --> A
H["Health Report<br/>(daily)"] -. monitors .-> A
H -. monitors .-> B
| Workflow | What it does | Trigger |
|---|---|---|
auto-labelling.md |
Labels discussions using the instruction file | daily, workflow_dispatch |
labelling-correction-collector.yml |
Deterministically collects trusted label corrections into parent issues with linked signal sub-issues | repository_dispatch |
labelling-correction-feedback.md |
Reviews one collected parent issue and raises an instruction-update PR when the evidence supports it | workflow_dispatch, label_command (update-instructions) |
labelling-health-report.md |
Publishes a rolling report on labelling quality, correction pressure, and open instruction debt | daily |
| Secret | Workflows | Permissions needed |
|---|---|---|
COPILOT_GITHUB_TOKEN |
All | Copilot CLI auth |
COMM_COMM_DISCUSSIONS_TOKEN |
auto-labelling, labelling-correction-collector |
Contents (read), Discussions (read & write) on the target repo |
COMM_COMM_OPS_ISSUES_TOKEN |
auto-labelling, labelling-correction-collector, labelling-health-report |
Issues (write) on the sidecar repo |
- Wait for correction signals to accumulate in a parent intake issue.
- When the parent has enough evidence, add the
update-instructionslabel. - The workflow opens a draft PR updating the instruction file — review and merge it.