From 7ce1b9dce8785fbe6a52ccc3030bf9afd1753fb4 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 17 Mar 2024 16:41:51 +0100 Subject: Add PR naming convention (#1051) --- .github/pull_request_template.md | 19 +++++++++++++++++++ .github/workflows/enforce-pr-name.yml | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/enforce-pr-name.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..6218fe34 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,19 @@ + diff --git a/.github/workflows/enforce-pr-name.yml b/.github/workflows/enforce-pr-name.yml new file mode 100644 index 00000000..cd848845 --- /dev/null +++ b/.github/workflows/enforce-pr-name.yml @@ -0,0 +1,19 @@ +on: + pull_request: + types: + - opened + - edited + - synchronize + - reopened + +name: Naming conventions +jobs: + verify-pr-name: + name: Check PR name + runs-on: ubuntu-latest + steps: + - uses: deepakputhraya/action-pr-title@master + with: + regex: '(meta: )?(Add|Fix|Remove) .+[^\\.]' + prefix_case_sensitive: true + github_token: ${{ github.token }} -- cgit