From e66a88cfcf7aa89711419bfbf335142fae64fb10 Mon Sep 17 00:00:00 2001 From: Techassi Date: Mon, 23 Feb 2026 16:48:21 +0100 Subject: [PATCH 1/3] ci: Add conventional PR title workflow This workflow is only triggered on PRs for cert-tools (for now). --- .github/workflows/pr_conventional-title.yaml | 26 ++++++++++++++++++++ rust/cert-tools/committed.toml | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/pr_conventional-title.yaml create mode 100644 rust/cert-tools/committed.toml diff --git a/.github/workflows/pr_conventional-title.yaml b/.github/workflows/pr_conventional-title.yaml new file mode 100644 index 00000000..db92365f --- /dev/null +++ b/.github/workflows/pr_conventional-title.yaml @@ -0,0 +1,26 @@ +--- +name: Conventional PR Title + +on: + pull_request: + paths: + - ".github/workflows/pr_conventional-title.yaml" + - "rust/cert-tools" + +jobs: + check: + name: Ensure PR title is conventional + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + submodules: recursive + - shell: bash + env: + PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }} + run: | + echo "$PULL_REQUEST_TITLE" > pull_request_title + - uses: crate-ci/committed@dc6f20ddd899fe6d6f0402807884c0a4b3176b53 # v1.1.10 + with: + args: --commit-file pull_request_title --config rust/cert-tools/committed.toml -vv --no-merge-commit diff --git a/rust/cert-tools/committed.toml b/rust/cert-tools/committed.toml new file mode 100644 index 00000000..32917fa6 --- /dev/null +++ b/rust/cert-tools/committed.toml @@ -0,0 +1,2 @@ +style = "conventional" +allowed_scopes = ["cert-tools"] From f2fd538459aa46902a8a7500aad2ec66e4dfd84c Mon Sep 17 00:00:00 2001 From: Techassi Date: Mon, 23 Feb 2026 16:58:36 +0100 Subject: [PATCH 2/3] ci: Use fetch-depth 0 --- .github/workflows/pr_conventional-title.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr_conventional-title.yaml b/.github/workflows/pr_conventional-title.yaml index db92365f..1bd57547 100644 --- a/.github/workflows/pr_conventional-title.yaml +++ b/.github/workflows/pr_conventional-title.yaml @@ -16,6 +16,7 @@ jobs: with: persist-credentials: false submodules: recursive + fetch-depth: 0 - shell: bash env: PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }} From d4dff42047978e8389ec83560fef4125e48cf21b Mon Sep 17 00:00:00 2001 From: Techassi Date: Mon, 23 Feb 2026 17:01:06 +0100 Subject: [PATCH 3/3] ci: Select no commits --- .github/workflows/pr_conventional-title.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr_conventional-title.yaml b/.github/workflows/pr_conventional-title.yaml index 1bd57547..08946fc0 100644 --- a/.github/workflows/pr_conventional-title.yaml +++ b/.github/workflows/pr_conventional-title.yaml @@ -25,3 +25,4 @@ jobs: - uses: crate-ci/committed@dc6f20ddd899fe6d6f0402807884c0a4b3176b53 # v1.1.10 with: args: --commit-file pull_request_title --config rust/cert-tools/committed.toml -vv --no-merge-commit + commits: ""