Skip to content

Commit

Permalink
Remove label check in automated PR script
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Nov 29, 2024
1 parent 0bbb1dd commit 9f2dacd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions scripts/create_or_update_automated_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f2dacd

Please sign in to comment.