From cd8d752529e43ea0313aee377f0d4d6c9d11401d Mon Sep 17 00:00:00 2001 From: Harsh Bhikadia Date: Fri, 17 Dec 2021 19:25:07 +0530 Subject: [PATCH] ci: added check for proper PR title based on conventionalcommits.org --- .github/workflows/pr_title.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pr_title.yaml diff --git a/.github/workflows/pr_title.yaml b/.github/workflows/pr_title.yaml new file mode 100644 index 0000000..2e7488a --- /dev/null +++ b/.github/workflows/pr_title.yaml @@ -0,0 +1,18 @@ +# Lint PR title +name: pr_title + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + validate: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v3.4.6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file