From f953582e24bf23ad408cd0f5f3cdf5f3af81ec63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 8 Aug 2022 17:40:25 +0200 Subject: [PATCH] Add spell on the pull request title --- .github/workflows/pr-check.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index 97b15265..34131c57 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -1,4 +1,4 @@ -name: Required label +name: Pull request check on: pull_request: @@ -10,13 +10,22 @@ on: jobs: build: - name: Required label + name: Pull request check runs-on: ubuntu-20.04 timeout-minutes: 5 steps: - uses: actions/checkout@v3 + - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} + - uses: yashhy/pr-label-check-and-comment-action@master with: required_labels: enhancement, bug, refactor, documentation, chore, dependencies GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: github.actor != 'renovate[bot]' + + # Do spell on pull request title + - run: python3 -m pip install --user codespell + - run: jq -r '.pull_request.title' ${GITHUB_EVENT_PATH} > pull-request-title + # --ignore-words=spell-ignore-words.txt + - run: codespell pull-request-title