aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-26 19:30:45 -0400
committerXe Iaso <me@xeiaso.net>2025-04-26 19:30:45 -0400
commit08dd2fce0f46670d146da5748d46ddaa88897098 (patch)
tree4ed2b83834cb49aa9b13a88aa59835a79fe56c64
parent33ebd254071288ae5925b39cc59c3aba67cce499 (diff)
downloadx-08dd2fce0f46670d146da5748d46ddaa88897098.tar.xz
x-08dd2fce0f46670d146da5748d46ddaa88897098.zip
ci: add some common helper workflows
Signed-off-by: Xe Iaso <me@xeiaso.net>
-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 }}