Loading
ci: show the docs review environment only when docs change
What does this MR do?
The manual review-docs-deploy job appears on every merge request as "Can be manually deployed to review/mr-<iid>", which doesn't say it's a docs preview, and it shows up even when an MR touches no docs.
- Renames the environment to
docs-review/mr-<iid>in bothreview-docs-deployandreview-docs-cleanup, so the MR widget reads "Can be manually deployed todocs-review/mr-<iid>" and the environments group under adocs-reviewfolder. - Gives
.review-docsits ownrules, so both review jobs are added only to merge request pipelines that changedocs/**/*. They stay manual.
The preview URL is unchanged. Existing review/mr-<iid> environments stop on their own through auto_stop_in: 2 weeks.
How to verify
- On this MR (no docs changes), the pipeline has no
review-docs-deployjob and the widget shows no deploy prompt. - On an MR that changes a page under
docs/, the widget shows "Can be manually deployed todocs-review/mr-<iid>". Running the job deploys to the samedocs.gitlab.com/upstream-review-mr-cli-<iid>/cliURL.