From 1c505c780c06ea0ea20d38c48931d8dc8f8dfbc8 Mon Sep 17 00:00:00 2001 From: Alan Tse Date: Fri, 17 Nov 2023 18:57:03 -0800 Subject: [PATCH] ci: add pr lint action --- .github/workflows/lintpr.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lintpr.yaml diff --git a/.github/workflows/lintpr.yaml b/.github/workflows/lintpr.yaml new file mode 100644 index 000000000..d54e17496 --- /dev/null +++ b/.github/workflows/lintpr.yaml @@ -0,0 +1,20 @@ +name: "Lint PR" + +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 }}