-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check that origin points to main repo for release #762
Check that origin points to main repo for release #762
Conversation
With this commit we add a new pre-release check that ensures that the git remote named `origin` points to Rally's main repository instead of a fork. This is necessary for releases because later during the release process, changes will be pushed automatically to the main repository (such as the release tags). Closes elastic#717
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Left a suggestion.
release-checks.sh
Outdated
@@ -50,6 +50,13 @@ then | |||
exit 1 | |||
fi | |||
|
|||
ORIGIN_URL=$(git remote get-url --push origin) | |||
if [[ $(echo ${ORIGIN_URL} | grep -c "elastic/rally") == "0" ]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about something simpler here like if [[ $ORIGIN_URL != *"elastic/rally"* ]]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. I've pushed this change in ae88a21.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Thank you both for the reviews! :) |
* Check that origin points to main repo for release With this commit we add a new pre-release check that ensures that the git remote named `origin` points to Rally's main repository instead of a fork. This is necessary for releases because later during the release process, changes will be pushed automatically to the main repository (such as the release tags). Relates elastic#762 Closes elastic#717
With this commit we add a new pre-release check that ensures that the
git remote named
origin
points to Rally's main repository instead of afork. This is necessary for releases because later during the release
process, changes will be pushed automatically to the main repository
(such as the release tags).
Closes #717