From b974c3e07274cbf00fd1d258b51b6887ff922954 Mon Sep 17 00:00:00 2001 From: shreyasbhat0 Date: Fri, 27 Oct 2023 12:29:06 +0530 Subject: [PATCH] chore: add pr lint workflow --- .github/workflows/lint-pr.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/lint-pr.yaml diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml new file mode 100644 index 0000000..dca39a4 --- /dev/null +++ b/.github/workflows/lint-pr.yaml @@ -0,0 +1,18 @@ +name: Lint PR +on: + pull_request_target: + types: + - opened + - edited + - synchronize +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + validateSingleCommit: true + validateSingleCommitMatchesPrTitle: true