2018-08-27 11:26:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-02-05 12:16:18 -05:00
|
|
|
docs_paths_to_review = helper.changes_by_category[:documentation]
|
2018-08-27 11:26:28 -04:00
|
|
|
|
|
|
|
unless docs_paths_to_review.empty?
|
|
|
|
message 'This merge request adds or changes files that require a ' \
|
2018-11-16 13:32:14 -05:00
|
|
|
'review from the Docs team.'
|
2018-08-27 11:26:28 -04:00
|
|
|
|
|
|
|
markdown(<<~MARKDOWN)
|
2018-11-16 13:32:14 -05:00
|
|
|
## Docs review
|
2018-08-27 11:26:28 -04:00
|
|
|
|
|
|
|
The following files require a review from the Documentation team:
|
|
|
|
|
|
|
|
* #{docs_paths_to_review.map { |path| "`#{path}`" }.join("\n* ")}
|
|
|
|
|
2018-12-06 08:32:17 -05:00
|
|
|
When your content is ready for review, assign the MR to a technical writer
|
|
|
|
according to the [DevOps stages](https://about.gitlab.com/handbook/product/categories/#devops-stages)
|
|
|
|
in the table below. If necessary, mention them in a comment explaining what needs
|
|
|
|
to be reviewed.
|
2018-11-09 10:37:22 -05:00
|
|
|
|
2018-11-16 13:32:14 -05:00
|
|
|
| Tech writer | Stage(s) |
|
|
|
|
| ------------ | ------------------------------------------------------------ |
|
2018-12-06 08:32:17 -05:00
|
|
|
| `@marcia` | ~Create ~Release + ~"development guidelines" |
|
2019-01-22 09:39:22 -05:00
|
|
|
| `@axil` | ~Distribution ~Gitaly ~Gitter ~Monitor ~Package ~Secure |
|
2018-11-16 13:32:14 -05:00
|
|
|
| `@eread` | ~Manage ~Configure ~Geo ~Verify |
|
|
|
|
| `@mikelewis` | ~Plan |
|
2018-11-09 13:55:27 -05:00
|
|
|
|
2018-12-06 08:32:17 -05:00
|
|
|
You are welcome to mention them sooner if you have questions about writing or
|
|
|
|
updating the documentation. GitLabbers are also welcome to use the
|
|
|
|
[#docs](https://gitlab.slack.com/archives/C16HYA2P5) channel on Slack.
|
|
|
|
|
2018-11-09 13:55:27 -05:00
|
|
|
If you are not sure which category the change falls within, or the change is not
|
2018-12-06 08:32:17 -05:00
|
|
|
part of one of these categories, mention one of the usernames above.
|
2018-08-27 11:26:28 -04:00
|
|
|
MARKDOWN
|
|
|
|
|
|
|
|
unless gitlab.mr_labels.include?('Documentation')
|
|
|
|
warn 'This merge request is missing the ~Documentation label.'
|
|
|
|
end
|
|
|
|
end
|