File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Check PR format workflow
2+
3+ on :
4+ pull_request :
5+ types : [opened, reopened, edited]
6+ branches : [master]
7+
8+ jobs :
9+ gitlint :
10+ # Filter out Draft Pull Requests
11+ if : github.event.pull_request.draft == false
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v1
15+ - name : Set up Python 3.7
16+ uses : actions/setup-python@v1
17+ with :
18+ python-version : 3.7
19+ - name : Install dependencies
20+ run : python -m pip install gitlint==0.15.0
21+ - name : Run Gitlint
22+ run : python -c "import json; print(json.load(open('$GITHUB_EVENT_PATH'))['pull_request']['title'])" | gitlint
Original file line number Diff line number Diff line change 1+ [general]
2+ contrib=contrib-title-conventional-commits
3+
4+ # In the CI workflow, gitlint only checks the title of the commits, so errors
5+ # for missing the body of the commits are ignored.
6+ ignore=body-is-missing
7+
8+ [contrib-title-conventional-commits]
9+ types=feat,fix,misc
You can’t perform that action at this time.
0 commit comments