mattermost/.github/workflows
Eva Sarafianou fee649d063
Run docs-impact-review as regular CI instead of slash command (#35620)
* Run docs-impact-review as regular CI instead of slash command

Switch the Documentation Impact Review workflow from a `/docs-review`
slash command trigger to running automatically on pull_request events.
The analysis posts a sticky PR comment and inline comments, and adds a
`docs/needed` label when documentation changes are needed.

Made-with: Cursor

* Address review feedback: harden docs-impact-review workflow

- Remove invalid `direct_prompt` input not recognized by the pinned
  claude-code-action version (auto-detects mode from event type).
- Guard Claude step with secret availability check so fork and
  Dependabot PRs skip gracefully instead of failing.
- Move label management out of the LLM into a deterministic
  github-script step that parses the sticky comment, eliminating
  prompt-injection and excessive-agency risks.

Made-with: Cursor

* Fix secret check: use job-level env var instead of secrets context in step if

The secrets context is not available in step-level if expressions.
Evaluate it as a job-level env var and reference that instead.

Made-with: Cursor

* Use paginated API call to fetch all PR comments

Prevents missing the bot comment on busy PRs with more than 30 comments.

Made-with: Cursor

* Address review: add issues:write permission, remove auto-label-removal

- Upgrade issues permission from read to write (required for addLabels API)
- Remove automatic docs/needed label removal to avoid stripping the label
  prematurely when the analysis comment hasn't been posted yet

Made-with: Cursor
2026-03-19 09:47:36 +02:00
..
api.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
build-opensearch-image.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
build-server-image.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
claude.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
codeql-analysis.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
docker-push-mirrored.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
docs-impact-review.yml Run docs-impact-review as regular CI instead of slash command (#35620) 2026-03-19 09:47:36 +02:00
e2e-fulltests-ci.yml chore: bump versions of actions (#35386) 2026-03-06 09:35:11 +08:00
e2e-tests-check.yml fix: E2E-only PR image tag for release branches (#35472) 2026-03-09 16:00:29 +08:00
e2e-tests-ci-template.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
e2e-tests-ci.yml chore: bump versions of actions (#35386) 2026-03-06 09:35:11 +08:00
e2e-tests-cypress-template.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
e2e-tests-cypress.yml E2E/Test: Increase parallel tests and removed smoke tests (#35271) 2026-02-17 10:23:41 +08:00
e2e-tests-on-merge.yml E2E/Test: Increase parallel tests and removed smoke tests (#35271) 2026-02-17 10:23:41 +08:00
e2e-tests-on-release.yml E2E/Test: Increase parallel tests and removed smoke tests (#35271) 2026-02-17 10:23:41 +08:00
e2e-tests-override-status.yml SEC-9513 feat: e2e tests on master and releases (#35205) 2026-02-11 13:02:25 +08:00
e2e-tests-playwright-template.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
e2e-tests-playwright.yml E2E/Test: Increase parallel tests and removed smoke tests (#35271) 2026-02-17 10:23:41 +08:00
e2e-tests-verified-label.yml SEC-9513 feat: e2e tests on master and releases (#35205) 2026-02-11 13:02:25 +08:00
i18n-ci-pr.yml prevent modifying non-English translation files (#25002) 2023-10-19 14:40:06 -03:00
i18n-ci-template.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
mmctl-test-template.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
scorecards-analysis.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
sentry.yaml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
server-ci-artifacts.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
server-ci-report.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
server-ci.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
server-test-template.yml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
tag-public-module.yaml Bump the github-actions-updates group with 11 updates (#35500) 2026-03-07 13:36:18 +08:00
webapp-ci.yml Add CI check for broken mattermost.com links in webapp (#35093) 2026-03-11 17:43:08 -04:00