From 2594d13989014090b48f5afb85a7ef3d958b16d0 Mon Sep 17 00:00:00 2001 From: Christof Date: Thu, 16 Jun 2022 15:47:09 +0200 Subject: [PATCH] chore: Stop failing tagging on invalid issue links --- scripts/issue-tagging.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/issue-tagging.sh b/scripts/issue-tagging.sh index 6fecfdc4..28f772bb 100755 --- a/scripts/issue-tagging.sh +++ b/scripts/issue-tagging.sh @@ -35,7 +35,6 @@ echo "Finding merged pull requests between $BASE_TAG and $LATEST_TAG..." PRs=$(git log --pretty=oneline "$BASE_TAG"..."$LATEST_TAG" | grep 'Merge pull request #' | grep -oE '#[0-9]+' | sed 's/#//') # Find fixed issues from $BASE_TAG to $LATEST_TAG -EXIT_CODE=0 ISSUES=() for pr in $PRs; do id=$($GHCLI_BIN pr view "$pr" --json body | grep -oE '(Related issues \| )(.*)?[0-9]+(.*|\r|\n)?(\|)' | sed 's/[^[:digit:]]//g' | sed -z 's/\n//g' || true) @@ -44,7 +43,6 @@ for pr in $PRs; do fi if ! $GHCLI_BIN issue view "$id" --json title &> /dev/null; then echo "Invalid issue $id for pull request $pr. Skipping." - EXIT_CODE=1 continue fi ISSUES+=("$id") @@ -75,4 +73,3 @@ for issue in "${ISSUES[@]}"; do done echo "Done." -exit $EXIT_CODE