mirror of
https://github.com/mattermost/mattermost.git
synced 2026-11-29 08:09:58 +08:00
* Replace docs impact review with self-clearing gap detection The old workflow sparse-checked-out mattermost/docs and cited source/**.rst paths that no longer exist, so it was judging the current PR against a docs tree this repo replaced. It also applied Docs/Needed and never removed it, which made the label a permanent record of a gap rather than a statement about the PR as it stands. docs-gap.yml reads both sides of the diff — the code and whatever docs the PR already carries — so a later push that documents the change flips the verdict to none and clears the label. The label follows the verdict, not the presence of a docs diff, or clearing it would be an escape hatch anyone could take by editing an unrelated page. Prior state travels in the sticky comment, so a label a human applied survives a none verdict. The audience personas come from the same frontmatter the review router reads instead of being restated in workflow YAML, which is what keeps the two halves of the pipeline from disagreeing about who reads what. Both are added and removed in one commit: they share a trigger, so running them together would double-comment and race the label. Co-authored-by: Cursor <cursoragent@cursor.com> * Tune docs-gap prompt, CAP limits, and Action pins Correct API docs publish scope, size wrap caps for ~10k/1k LoC and ~100 paths, and bump checkout/setup-node to v7. Co-authored-by: Cursor <cursoragent@cursor.com> * Split docs-ai into review/, gap/, and shared lib/ Make which pipeline owns which scripts obvious; keep one package and shared helpers. Co-authored-by: Cursor <cursoragent@cursor.com> * Trim docs-gap comments to non-obvious rationale Keep the why for label lifecycle, soft-fail, and secrets gating; drop restated narration. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix gap-report footer, label-remove restore, and cancelled report job Address CodeRabbit: hide opt-out on none, restore sticky if removeLabel fails, shell-safe dry-run example, skip report on concurrency cancel. Co-authored-by: Cursor <cursoragent@cursor.com> * Harden sticky author match and pin claude-code-action v1.0.235 Match stickies to github-actions[bot] only, use the job GITHUB_TOKEN instead of Claude App OIDC on analyze, and bump the action pin. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>