From 1e13293b007ac4914e723ef9b964bc19dbfb7d1e Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Wed, 24 Jul 2024 16:33:06 +0200 Subject: [PATCH] ci: add pr title format validation (#509) **What is the purpose of this pull request?** To assist #508 / #506 by ensuring that PR-title's are always valid conventional commit format before merging **What changes did you make? (Give an overview)** Added a pinned [mtfoley/pr-compliance-action](https://github.com/mtfoley/pr-compliance-action) similar to what I use at eg. neostandard: https://github.com/neostandard/neostandard/blob/main/.github/workflows/compliance.yml --- .github/workflows/compliance.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/compliance.yml diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml new file mode 100644 index 00000000..141216a2 --- /dev/null +++ b/.github/workflows/compliance.yml @@ -0,0 +1,18 @@ +name: Compliance + +on: + pull_request_target: + types: [opened, edited, reopened] + +permissions: + pull-requests: write + +jobs: + compliance: + runs-on: ubuntu-latest + steps: + - uses: mtfoley/pr-compliance-action@11b664f0fcf2c4ce954f05ccfcaab6e52b529f86 + with: + body-auto-close: false + body-regex: '.*' + ignore-team-members: false