2018-08-27 11:26:28 -04:00
# frozen_string_literal: true
2020-07-07 05:08:57 -04:00
def gitlab_danger
@gitlab_danger || = GitlabDanger . new ( helper . gitlab_helper )
end
2019-02-18 05:03:46 -05:00
docs_paths_to_review = helper . changes_by_category [ :docs ]
2018-08-27 11:26:28 -04:00
2020-07-07 05:08:57 -04:00
return if docs_paths_to_review . empty?
message 'This merge request adds or changes files that require a review ' \
'from the Technical Writing team.'
return unless gitlab_danger . ci?
2018-08-27 11:26:28 -04:00
2020-07-07 05:08:57 -04:00
markdown ( << ~ MARKDOWN )
## Documentation review
2018-08-27 11:26:28 -04:00
2020-07-07 05:08:57 -04:00
The following files require a review from a technical writer :
2018-08-27 11:26:28 -04:00
2020-07-07 05:08:57 -04:00
* #{docs_paths_to_review.map { |path| "`#{path}`" }.join("\n* ")}
2018-08-27 11:26:28 -04:00
2020-07-07 05:08:57 -04:00
The review does not need to block merging this merge request . See the :
2019-02-11 16:19:06 -05:00
2020-07-07 05:08:57 -04:00
- [ Technical Writers assignments ] ( https : / / about . gitlab . com / handbook / engineering / technical - writing / #designated-technical-writers) for the appropriate technical writer for this review.
- [ Documentation workflows ] ( https : / / docs . gitlab . com / ee / development / documentation / workflow . html ) for information on when to assign a merge request for review .
MARKDOWN