From 9f2dacdeafbce2a3087ce99505a9bba40b3d222a Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Fri, 29 Nov 2024 11:54:18 +0100 Subject: [PATCH] Remove label check in automated PR script Signed-off-by: gabriel-farache --- scripts/create_or_update_automated_pr.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/scripts/create_or_update_automated_pr.sh b/scripts/create_or_update_automated_pr.sh index 9ce12050..ff78566f 100644 --- a/scripts/create_or_update_automated_pr.sh +++ b/scripts/create_or_update_automated_pr.sh @@ -41,17 +41,6 @@ for pr in $prs; do git config --global user.email "${USER_EMAIL}" git config --global user.name "${USER_NAME}" # Get the PR details (branch) - pr_labels=$(gh pr view "$pr" --repo "$REPO" --json labels --jq '.labels[].name') - for label in "${pr_labels[@]}" - do - if [[ "$label" =~ "do-not-merge" ]] - then - echo "PR $pr is labeled with do-not-merge, ignoring it" - exit 0 - fi - done - - pr_branch=$(gh pr view "$pr" --repo "$REPO" --json headRefName --jq '.headRefName') gh repo clone "${REPO}" config-repo