From e73ee44806e79ef2462a40361844fe1f1cf59806 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:01:59 +1200 Subject: [PATCH] ENH Exclude GHA and dependabot PRs from being added to the board (#11) --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 110c796..0f6f67e 100644 --- a/action.yml +++ b/action.yml @@ -27,9 +27,9 @@ runs: fi # We don't want CMS Squad member PRs to clutter the project board echo "Author is $PR_AUTHOR" - for squad_member in 'GuySartorelli' 'emteknetnz'; do - if [[ $PR_AUTHOR == $squad_member ]]; then - echo "Author is in CMS Squad. Skipping." + for ignore_user in 'dependabot[bot]' 'github-actions[bot]' 'GuySartorelli' 'emteknetnz'; do + if [[ $PR_AUTHOR == $ignore_user ]]; then + echo "Author is in CMS Squad or is a bot user. Skipping." echo "should_add_to_project=false" >> $GITHUB_OUTPUT exit 0 fi