From 36c05bd5736412f6f7d4bd3d214fef590337ee85 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Thu, 4 Apr 2024 11:31:36 -0700 Subject: [PATCH] Opt out of pre-commit suggestions (#3858) Due to my workflow, I prefer to run `pre-commit` locally when I forget to after an amend. While reviewdog can be helpful in the UI, it's mostly making me mark comments as resolved as part of re-pushing. Rather than continuing with this, maybe opting out is best? --- .github/workflows/pre_commit_suggestions.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre_commit_suggestions.yaml b/.github/workflows/pre_commit_suggestions.yaml index 07bf01c017ff..e155fe4b0411 100644 --- a/.github/workflows/pre_commit_suggestions.yaml +++ b/.github/workflows/pre_commit_suggestions.yaml @@ -27,7 +27,8 @@ jobs: # Only generate suggestions if pre-commit for a PR failed. if: | github.event.workflow_run.conclusion == 'failure' && - github.event.workflow_run.event == 'pull_request' + github.event.workflow_run.event == 'pull_request' && + github.actor != 'jonmeow' runs-on: ubuntu-latest steps: - uses: reviewdog/action-setup@v1