From c0c5cd55aca97851e81d7639a1b8ce5af5421848 Mon Sep 17 00:00:00 2001 From: smnatale Date: Tue, 14 Apr 2026 09:44:34 +0100 Subject: [PATCH 1/2] enforce semantic pr --- .github/workflows/semantic-pr.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/semantic-pr.yml diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml new file mode 100644 index 0000000..23c82ae --- /dev/null +++ b/.github/workflows/semantic-pr.yml @@ -0,0 +1,31 @@ +name: Semantic PR + +on: + pull_request_target: + types: [opened, edited, synchronize] + +permissions: + pull-requests: read + +jobs: + semantic-pr: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + chore + docs + test + refactor + ci + perf + requireScope: false + subjectPattern: ^[a-z].+$ + subjectPatternError: | + The subject "{subject}" found in the pull request title "{title}" + must start with a lowercase letter. From 62f740adb73b6151cd78b6e4b746d55484e63f67 Mon Sep 17 00:00:00 2001 From: smnatale Date: Tue, 14 Apr 2026 09:50:01 +0100 Subject: [PATCH 2/2] minor tweak --- .github/PULL_REQUEST_TEMPLATE.md | 5 ++--- .github/workflows/semantic-pr.yml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7a1d6e7..586a136 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,7 +1,6 @@ ## Description - - +Add description here ## Screenshots/Images - +Add images here diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml index 23c82ae..8f02185 100644 --- a/.github/workflows/semantic-pr.yml +++ b/.github/workflows/semantic-pr.yml @@ -1,8 +1,8 @@ name: Semantic PR on: - pull_request_target: - types: [opened, edited, synchronize] + pull_request: + branches: [main] permissions: pull-requests: read