From 09a50ed115d75071a393a8b9d40758f5a6ed8dfd Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Fri, 6 Dec 2024 12:14:54 +0530 Subject: [PATCH] Add action to lint PR titles --- .github/workflows/pr_title.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr_title.yml diff --git a/.github/workflows/pr_title.yml b/.github/workflows/pr_title.yml new file mode 100644 index 00000000000..5eb4474dfd4 --- /dev/null +++ b/.github/workflows/pr_title.yml @@ -0,0 +1,21 @@ +name: PR Title check + +on: + pull_request: + types: + - opened + - edited + - synchronize + - reopened + +permissions: + pull-requests: read + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}