From c3843472ce2acb1378c7655181333c162bce7bc4 Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Thu, 25 May 2023 23:54:12 +0530 Subject: [PATCH] feat: Auto check PR titles if they follow conventional commits spec (#9109) Signed-off-by: Adithya Krishna 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