From 5b9f7a9f3fa13d02eaf3159af11949e7356e2ad1 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Mon, 13 Jan 2025 15:17:30 +0000 Subject: [PATCH 1/3] Fix typo --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index fefd79f8..dff71cab 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -16,7 +16,7 @@ jobs: github.actor != 'pre-commit-ci[bot]' && github.actor != 'dependabot[bot]' runs-on: ubuntu-latest steps: - - name: Enfore PR title format + - name: Enforce PR title format uses: thehanimo/pr-title-checker@v1.4.3 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c099a5733e3e968a874e09dec568a5bd5883ba56 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Mon, 13 Jan 2025 16:07:41 +0000 Subject: [PATCH 2/3] Switch to OR --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index dff71cab..2d7633bb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -13,7 +13,7 @@ on: jobs: check-pr-title: if: - github.actor != 'pre-commit-ci[bot]' && github.actor != 'dependabot[bot]' + github.actor != 'pre-commit-ci[bot]' || github.actor != 'dependabot[bot]' runs-on: ubuntu-latest steps: - name: Enforce PR title format From d5398756c9c11ba0062a1ce95e37e7c3cd338fae Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Mon, 13 Jan 2025 16:10:50 +0000 Subject: [PATCH 3/3] Switch to `github.event.pull_request.user.login` --- .github/workflows/pull_request.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 2d7633bb..92af57fb 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,8 +12,9 @@ on: jobs: check-pr-title: - if: - github.actor != 'pre-commit-ci[bot]' || github.actor != 'dependabot[bot]' + if: >- + github.event.pull_request.user.login != 'pre-commit-ci[bot]' && + github.event.pull_request.user.login != 'dependabot[bot]' runs-on: ubuntu-latest steps: - name: Enforce PR title format