summaryrefslogtreecommitdiff
path: root/.github/workflows/pull-request-message-check.yml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2022-10-12 17:46:31 +0100
committerDaniil Baturin <daniil@baturin.org>2022-10-13 21:30:50 +0100
commitba8099518353eafc95aa1e49c6b63cfe6ca1615a (patch)
tree8cb1ddc8d613aebc4831033d3360f56aad640d50 /.github/workflows/pull-request-message-check.yml
parent06d6386e5d9fb9812b23032516bbdc938dcc4a9f (diff)
downloadvyos-1x-ba8099518353eafc95aa1e49c6b63cfe6ca1615a.tar.gz
vyos-1x-ba8099518353eafc95aa1e49c6b63cfe6ca1615a.zip
ci: T4748: add a CI action to check pull request title
and commit messages format
Diffstat (limited to '.github/workflows/pull-request-message-check.yml')
-rw-r--r--.github/workflows/pull-request-message-check.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/pull-request-message-check.yml b/.github/workflows/pull-request-message-check.yml
new file mode 100644
index 000000000..8c206a5ab
--- /dev/null
+++ b/.github/workflows/pull-request-message-check.yml
@@ -0,0 +1,23 @@
+---
+name: Check pull request message format
+
+on:
+ pull_request:
+ branches:
+ - current
+ - crux
+ - equuleus
+
+jobs:
+ check-pr-title:
+ name: Check pull request title
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ timeout-minutes: 2
+ - name: Install the requests library
+ run: pip3 install requests
+ - name: Check the PR title
+ timeout-minutes: 2
+ run: |
+ ./scripts/check-pr-title-and-commit-messages.py '${{ github.event.pull_request.url }}'