From 2c6397d02005c431bc9c4eac7829ba39d3f16b02 Mon Sep 17 00:00:00 2001 From: keienWang <42377006+keienWang@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:55:08 +0800 Subject: [PATCH] feat(ci): introduce PR title linting with GitHub Actions --- .github/workflows/check-pr-title.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/check-pr-title.yml diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml new file mode 100644 index 0000000000..d905c31ff5 --- /dev/null +++ b/.github/workflows/check-pr-title.yml @@ -0,0 +1,18 @@ +name: Check PR title +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + statuses: write + steps: + - uses: aslafy-z/conventional-pr-title-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file