summaryrefslogtreecommitdiffstats
path: root/.github/workflows/commit-lint.yml
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2023-04-08 09:53:53 +0200
committerMatthias Beyer <mail@beyermatthias.de>2023-04-08 09:53:53 +0200
commit02fb8fae8cacc016a6f70ae9a8f61bf5a7106c4b (patch)
treecb2ecc97439138817f75b92312b50d848afd83e5 /.github/workflows/commit-lint.yml
parent9f32393b0b64e7618d7cf017c37490d6662cff5a (diff)
parent841042b7bb0e70bbf6f2e0509f359517e58de456 (diff)
Merge branch 'master' of https://github.com/matthiasbeyer/rust-ci-setup-bors into ci
This adds CI setup for the repository using bors. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to '.github/workflows/commit-lint.yml')
-rw-r--r--.github/workflows/commit-lint.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml
new file mode 100644
index 0000000..309d637
--- /dev/null
+++ b/.github/workflows/commit-lint.yml
@@ -0,0 +1,18 @@
+on:
+ pull_request:
+
+name: Pull Request Checks
+
+jobs:
+ commit-lint:
+ runs-on: ubuntu-latest
+ if: github.event_name == 'pull_request'
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-python@v4
+ with:
+ python-version: '3.x'
+ - run: pip install gitlint
+ - run: gitlint --commits $(git merge-base origin/master HEAD)..HEAD