From 535a26681132f699212c57bed80b682d8e336164 Mon Sep 17 00:00:00 2001 From: Anthony Lukach Date: Thu, 16 Mar 2023 22:22:12 -0700 Subject: [PATCH] ci: add conventional commit pr check --- .github/workflows/conventional-pr.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/conventional-pr.yaml diff --git a/.github/workflows/conventional-pr.yaml b/.github/workflows/conventional-pr.yaml new file mode 100644 index 0000000..4185da0 --- /dev/null +++ b/.github/workflows/conventional-pr.yaml @@ -0,0 +1,26 @@ +name: conventional-pr +on: + pull_request: + branches: + - main + - master + types: + - opened + - edited + - synchronize +jobs: + lint-pr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Get Release Bot Token + id: get-token + uses: getsentry/action-github-app-token@v1 + with: + app_id: ${{ secrets.DS_RELEASE_BOT_ID }} + private_key: ${{ secrets.DS_RELEASE_BOT_PRIVATE_KEY }} + + - uses: CondeNast/conventional-pull-request-action@v0.2.0 + env: + GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}