From 29f4ed18ea6e697d43c4803fb819eafee618c0d1 Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Fri, 13 Oct 2023 11:16:48 -0400 Subject: [PATCH 1/2] ci: lint pull request title --- .github/workflows/lint-pull-request.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lint-pull-request.yml diff --git a/.github/workflows/lint-pull-request.yml b/.github/workflows/lint-pull-request.yml new file mode 100644 index 0000000000..a5221babff --- /dev/null +++ b/.github/workflows/lint-pull-request.yml @@ -0,0 +1,20 @@ +name: lint-pull-request + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +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 }} From 1a1d4a83188af08120d57eab262a7a0c6be8d476 Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Fri, 13 Oct 2023 11:27:47 -0400 Subject: [PATCH 2/2] fix: job name should be kebab case --- .github/workflows/lint-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-pull-request.yml b/.github/workflows/lint-pull-request.yml index a5221babff..5544d0854d 100644 --- a/.github/workflows/lint-pull-request.yml +++ b/.github/workflows/lint-pull-request.yml @@ -12,7 +12,7 @@ permissions: jobs: main: - name: Validate PR title + name: conventional-commit-pr-title runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5