Skip to content

Commit 0afdf95

Browse files
Merge pull request #1546 from snyk/chore/gh-issue-tagging
chore: Stop failing issue tagging on invalid issue links
2 parents 8a16e86 + 2594d13 commit 0afdf95

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scripts/issue-tagging.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ echo "Finding merged pull requests between $BASE_TAG and $LATEST_TAG..."
3535
PRs=$(git log --pretty=oneline "$BASE_TAG"..."$LATEST_TAG" | grep 'Merge pull request #' | grep -oE '#[0-9]+' | sed 's/#//')
3636

3737
# Find fixed issues from $BASE_TAG to $LATEST_TAG
38-
EXIT_CODE=0
3938
ISSUES=()
4039
for pr in $PRs; do
4140
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
4443
fi
4544
if ! $GHCLI_BIN issue view "$id" --json title &> /dev/null; then
4645
echo "Invalid issue $id for pull request $pr. Skipping."
47-
EXIT_CODE=1
4846
continue
4947
fi
5048
ISSUES+=("$id")
@@ -75,4 +73,3 @@ for issue in "${ISSUES[@]}"; do
7573
done
7674

7775
echo "Done."
78-
exit $EXIT_CODE

0 commit comments

Comments
 (0)