Skip to content

Commit 8cb6f71

Browse files
author
Jonathan Visser
committed
add autolinter suggest-changes to github actions
1 parent 6e672d1 commit 8cb6f71

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run linting and suggest changes
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.10']
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
pip install -r requirements/base.txt
25+
- name: Check markdown format
26+
run: mdformat docs/
27+
- uses: parkerbxyz/suggest-changes@v1
28+
with:
29+
comment: 'Please commit the suggested changes from mdformat'
30+
event: 'REQUEST_CHANGES'

0 commit comments

Comments
 (0)