Skip to content

Commit f8d8c32

Browse files
Comment if changes were made to docs folder
Fixes #1458
1 parent 391a41f commit f8d8c32

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docs_linter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: docs_linter
2+
3+
on:
4+
pull_request_target:
5+
paths:
6+
- 'docs/**'
7+
8+
jobs:
9+
comment:
10+
name: Notify user
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Comment on PR
16+
uses: actions/github-script@v4
17+
with:
18+
script: |
19+
github.issues.createComment({
20+
issue_number: context.issue.number,
21+
owner: context.repo.owner,
22+
repo: context.repo.repo,
23+
body: 'Hi! We appreciate your contribution to the conda-forge docs.' +
24+
'\nUnfortunately, the edit was made in the **_docs_** folder and not in the **_src_** folder. ' +
25+
'Please only edit the **_src_** folder.' +
26+
'\nFor more information on contributing to conda-forge, visit the ' +
27+
'[conda-forge docs](https://conda-forge.org/docs/user/contributing.html#improve-the-documentation).' +
28+
'\nIn case of any questions, please get in touch with us through our public [Gitter channel](https://gitter.im/conda-forge/conda-forge.github.io).'
29+
})

0 commit comments

Comments
 (0)