From 37e6f18378451c6a5c7af9fdba70437ac4ea7afa Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Tue, 30 May 2023 00:42:31 +0530 Subject: [PATCH] feat: Auto check PR titles if they follow conventional commits spec (#9109) Co-authored-by: Peer Richelsen --- .github/workflows/semantic-pull-requests.yml | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/semantic-pull-requests.yml diff --git a/.github/workflows/semantic-pull-requests.yml b/.github/workflows/semantic-pull-requests.yml new file mode 100644 index 0000000000..5585523eec --- /dev/null +++ b/.github/workflows/semantic-pull-requests.yml @@ -0,0 +1,21 @@ +name: "Validate PRs" + +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +permissions: + pull-requests: read + +jobs: + validate-pr: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file