From b5dd050ac4064203f11b585a059f5db47707ede4 Mon Sep 17 00:00:00 2001 From: Karim El Shenawy <54007257+elshenak@users.noreply.github.com> Date: Wed, 24 Jan 2024 09:48:52 -0500 Subject: [PATCH] chore: pr title lint workflow (#293) --- .github/workflows/pr-title-lint.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pr-title-lint.yaml diff --git a/.github/workflows/pr-title-lint.yaml b/.github/workflows/pr-title-lint.yaml new file mode 100644 index 00000000..eabd87c0 --- /dev/null +++ b/.github/workflows/pr-title-lint.yaml @@ -0,0 +1,18 @@ +name: Pull Request Title Lint + +on: + pull_request: + types: [opened, reopened, synchronize, edited] + +jobs: + pr-title-lint: + runs-on: ubuntu-latest + steps: + - uses: seferov/pr-lint-action@v1.2.0 + with: + # taken from https://gist.github.com/marcojahn/482410b728c31b221b70ea6d2c433f0c + title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)' + # title-regex-flags (Optional) + title-regex-flags: "g" + # error-message (Optional) + error-message: "Please follow conventional commit style: https://www.conventionalcommits.org/en/v1.0.0/"