-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
name: Docs Check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
fail-if-docs-needed: | ||
if: contains(github.event.pull_request.labels.*.name, 'docs-needed') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fail if PR needs accompanying docs to be written | ||
run: | | ||
echo "This change needs to be documented. Please get the docs approved, and change 'docs-needed' to 'docs-complete'." | ||
exit 1 | ||
jobs: | ||
fail-if-docs-needed: | ||
if: contains(github.event.pull_request.labels.*.name, 'docs-needed') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fail if PR needs accompanying docs to be written | ||
run: | | ||
echo "This change needs to be documented. Please get the docs approved, and change 'docs-needed' to 'docs-complete'." | ||
exit 1 |