Skip to content

Commit

Permalink
Merge 757fe75 into dfdd87b
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed Dec 3, 2022
2 parents dfdd87b + 757fe75 commit 81bf6b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ $CURRENT_DIR/deploy.sh --maven-central

# retrieve old milestone number
# https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository
OLD_MILESTONE_NUMBER=$(curl --silent --show-error --fail \
OLD_MILESTONE_NUMBER=$(curl --fail-with-body --silent --show-error --fail \
-H "Authorization: token $SEVNTU_GITHUB_TOKEN" \
https://api.github.com/repos/$GITHUB_PROJECT/milestones?state=open \
| jq '.[0].number')
Expand All @@ -159,14 +159,14 @@ read -p "Press enter to continue before closing and creating new milestone"
# close old milestone
# https://developer.github.com/v3/issues/milestones/#update-a-milestone
echo "Closing old milestone $OLD_MILESTONE_NUMBER"
curl --silent --show-error --fail -H "Authorization: token $SEVNTU_GITHUB_TOKEN" \
curl --fail-with-body --silent --show-error --fail -H "Authorization: token $SEVNTU_GITHUB_TOKEN" \
-d "{ \"state\": \"closed\" }" \
-X PATCH https://api.github.com/repos/$GITHUB_PROJECT/milestones/$OLD_MILESTONE_NUMBER

# create new milestone
# https://developer.github.com/v3/issues/milestones/#create-a-milestone
echo "Creating new milestone for $NEXT_VERSION"
curl --silent --show-error --fail -H "Authorization: token $SEVNTU_GITHUB_TOKEN" \
curl --fail-with-body --silent --show-error --fail -H "Authorization: token $SEVNTU_GITHUB_TOKEN" \
-d "{ \"title\": \"$NEXT_VERSION\", \
\"state\": \"open\", \
\"description\": \"\" }" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<!-- till https://issues.apache.org/jira/browse/MRELEASE-1008 -->
<suppress id="lineLength" files="pom.xml"/>

<!-- other images that do not support newer curl commands until
https://github.com/checkstyle/checkstyle/issues/12451 -->
<suppress id="properCurlCommand" files="bump-cs-version\.yml"/>

<!-- numberOfTestCasesInXpath does not apply to sevntu -->
<suppress id="numberOfTestCasesInXpath" files=".*" />
</suppressions>

0 comments on commit 81bf6b4

Please sign in to comment.