aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/dco-check.yaml9
-rw-r--r--.github/workflows/lint-pr-titles.yaml20
2 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/dco-check.yaml b/.github/workflows/dco-check.yaml
new file mode 100644
index 0000000..5eccad8
--- /dev/null
+++ b/.github/workflows/dco-check.yaml
@@ -0,0 +1,9 @@
+name: DCO Check
+
+on: [pull_request]
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: tisonkun/actions-dco@f1024cd563550b5632e754df11b7d30b73be54a5 # v1.1
diff --git a/.github/workflows/lint-pr-titles.yaml b/.github/workflows/lint-pr-titles.yaml
new file mode 100644
index 0000000..eb6afed
--- /dev/null
+++ b/.github/workflows/lint-pr-titles.yaml
@@ -0,0 +1,20 @@
+name: "Lint PR"
+
+on:
+ pull_request_target:
+ types:
+ - opened
+ - edited
+ - synchronize
+ - reopened
+
+jobs:
+ main:
+ name: Validate PR title
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: read
+ steps:
+ - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}