This repository contains the production workflows that support discussion triage in community/community.
Its main job is to label discussions consistently, keep the label allowlist aligned with upstream discussion templates, and surface repeated staff corrections as instruction feedback.
The workflows are written with GitHub Agentic Workflows. Source files live in .github/workflows/, while the compiled .lock.yml files are the workflow artifacts executed by GitHub Actions.
This repo has three jobs:
- Label discussions in
community/community - Detect drift between upstream discussion templates and the label allowlist
- Turn repeated staff label corrections into feedback for the labelling instructions
The runtime instruction file is .github/instructions/community-discussion-labeling.md. That file can be updated without recompiling the core labelling workflow.
| Workflow | Purpose | Trigger | Production role |
|---|---|---|---|
auto-labelling.md, community-discussion-labeling.md |
Reviews recent discussions and applies allowed labels | daily, workflow_dispatch |
Core production workflow |
allowlist-drift-check.md |
Compares template dropdown values with the auto-labeler allowlist | weekly, workflow_dispatch |
Deterministic guardrail |
labelling-correction-feedback.md |
Records recurring staff corrections and proposes instruction updates | weekly, repository_dispatch, workflow_dispatch |
Feedback loop |
Configure these secrets in this repository:
| Secret | Required by | Access needed |
|---|---|---|
COPILOT_GITHUB_TOKEN |
All workflows | GitHub Copilot CLI authentication for gh-aw execution |
READ_COMM_COMM_DISCUSSIONS_TOKEN |
All workflows | Read access to community/community discussions, org team membership, and community/category-forms-staging contents |
- Set
COPILOT_GITHUB_TOKENandREAD_COMM_COMM_DISCUSSIONS_TOKENincommunity-ops. - Run
workflow_dispatchonce forauto-labelling.md. - Run
workflow_dispatchonce forlabelling-correction-feedback.md. - Trigger one real label change in
community/communityand confirm the relay dispatch reacheslabelling-correction-feedback.md. - Watch the first week of scheduled runs before changing thresholds, prompts, or schedules.
After editing a workflow markdown file, recompile it:
gh aw compile <workflow-name>Examples:
gh aw compile auto-labelling
gh aw compile allowlist-drift-check
gh aw compile labelling-correction-feedbackIf you edit only .github/instructions/community-discussion-labeling.md, recompilation is not required.
- Treat
auto-labelling.mdas the main production surface. - Treat
allowlist-drift-check.mdas a maintenance guardrail, not a product feature. - Treat
labelling-correction-feedback.mdas a learning loop that still depends on operational follow-through.