From be8e628cda2b53a51a037c0696f6036761c62e9f Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 10 Apr 2026 16:22:08 +0000 Subject: [PATCH 1/5] feat: Force semantic versioning for pull request titles The goal is to do automated releases using semantic versioning. --- .github/workflows/pr-title-semantic.yaml | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/pr-title-semantic.yaml diff --git a/.github/workflows/pr-title-semantic.yaml b/.github/workflows/pr-title-semantic.yaml new file mode 100644 index 0000000..4045e72 --- /dev/null +++ b/.github/workflows/pr-title-semantic.yaml @@ -0,0 +1,47 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* +name: Validate PR Title +description: This workflow validates pull request titles against semantic conventions. +on: + pull_request_target: + types: + - opened + - edited + - reopened + - synchronize +permissions: + pull-requests: read +jobs: + semantic-pr-title: + name: Semantic PR Title + runs-on: ubuntu-slim + steps: + - name: Validate PR title + uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # Allowed title types according to conventional commit semantics. + types: | + feat + fix + docs + style + refactor + perf + test + build + ci + chore + revert + requireScope: false From ddd59366656e3492c3c18fd37f00470667e014f3 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 10 Apr 2026 16:30:02 +0000 Subject: [PATCH 2/5] Add comments to PRs missing semantic versioning --- .github/workflows/pr-title-semantic.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/pr-title-semantic.yaml b/.github/workflows/pr-title-semantic.yaml index 4045e72..ca589f2 100644 --- a/.github/workflows/pr-title-semantic.yaml +++ b/.github/workflows/pr-title-semantic.yaml @@ -45,3 +45,25 @@ jobs: chore revert requireScope: false + - uses: marocchino/sticky-pull-request-comment@v2 + # When the previous steps fails, the workflow would stop. By adding this + # condition you can continue the execution with the populated error message. + if: always() && (steps.lint_pr_title.outputs.error_message != null) + with: + header: pr-title-lint-error + message: | + Hey there and thank you for opening this pull request! 👋🏼 + + We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. + + Details: + + ``` + ${{ steps.lint_pr_title.outputs.error_message }} + ``` + # Delete a previous comment when the issue has been resolved + - if: ${{ steps.lint_pr_title.outputs.error_message == null }} + uses: marocchino/sticky-pull-request-comment@v2 + with: + header: pr-title-lint-error + delete: true From 775dcb8823b99bbc7a1ee8aad16d33d9cebc929f Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 10 Apr 2026 16:32:07 +0000 Subject: [PATCH 3/5] uptodate github action versions --- .github/workflows/pr-title-semantic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-title-semantic.yaml b/.github/workflows/pr-title-semantic.yaml index ca589f2..93026a1 100644 --- a/.github/workflows/pr-title-semantic.yaml +++ b/.github/workflows/pr-title-semantic.yaml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-slim steps: - name: Validate PR title - uses: amannn/action-semantic-pull-request@v5 + uses: amannn/action-semantic-pull-request@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -45,7 +45,7 @@ jobs: chore revert requireScope: false - - uses: marocchino/sticky-pull-request-comment@v2 + - uses: marocchino/sticky-pull-request-comment@v3 # When the previous steps fails, the workflow would stop. By adding this # condition you can continue the execution with the populated error message. if: always() && (steps.lint_pr_title.outputs.error_message != null) @@ -63,7 +63,7 @@ jobs: ``` # Delete a previous comment when the issue has been resolved - if: ${{ steps.lint_pr_title.outputs.error_message == null }} - uses: marocchino/sticky-pull-request-comment@v2 + uses: marocchino/sticky-pull-request-comment@v3 with: header: pr-title-lint-error delete: true From e2e536328ea1d8dc5b0e9967e24a34ef7dad79f4 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 10 Apr 2026 16:36:41 +0000 Subject: [PATCH 4/5] add missing lint_pr_title --- .github/workflows/pr-title-semantic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-title-semantic.yaml b/.github/workflows/pr-title-semantic.yaml index 93026a1..7a33211 100644 --- a/.github/workflows/pr-title-semantic.yaml +++ b/.github/workflows/pr-title-semantic.yaml @@ -28,6 +28,7 @@ jobs: steps: - name: Validate PR title uses: amannn/action-semantic-pull-request@v6 + id: lint_pr_title env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: From 97befb7a0b460b36dcb0a9abb2a07dce67499352 Mon Sep 17 00:00:00 2001 From: Lutz Reinhardt Date: Fri, 10 Apr 2026 16:40:45 +0000 Subject: [PATCH 5/5] make dependabot follow semantic versioning --- .github/dependabot.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 685b5d3..a8db63a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,11 +17,17 @@ updates: directory: / schedule: interval: daily + commit-message: + prefix: chore + include: scope # Docker base images - package-ecosystem: docker directory: /src/s-core-devcontainer/.devcontainer schedule: interval: daily + commit-message: + prefix: chore + include: scope groups: all-in-one: patterns: @@ -34,3 +40,6 @@ updates: directory: / schedule: interval: daily + commit-message: + prefix: chore + include: scope