-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
chore: fail prepare package for release if tag exists #35305
chore: fail prepare package for release if tag exists #35305
Conversation
6c40af0
to
cc05168
Compare
Base commit: 138af74 |
Base commit: 138af74 |
echo('You may want to rollback the last commit'); | ||
echo('git reset --hard HEAD~1'); | ||
exit(1); | ||
} |
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.
can you also add this type of logic to bump-oss-script
? After L46 would be perfect
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.
I'm not sure if at line 46 I can access argv
. For what I can read, i should manually access yargs
... I added it at line 78, right after the extraction of the version.
I also refactored it a little bit to avoid code duplication.
cc05168
to
fcda861
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
fcda861
to
ee46421
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
ee46421
to
1f25565
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1f25565
to
8822d6b
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: This PR makes sure that the `preapre_package_for_release` script fail fast if there is already a tag for the desired version on github. ## Changelog [General] [Added] - Make the `prepare_package_for_release` fail if there is already a git tag with that version Pull Request resolved: #35305 Test Plan: Tested manually. The script is currently only invoked during the release process. <img width="1238" alt="Screenshot 2022-11-10 at 12 24 03" src="https://user-images.githubusercontent.com/11162307/201090947-274c1b1c-0b6a-4619-bc85-fa60e5eaeee1.png"> Reviewed By: cortinico Differential Revision: D41403159 Pulled By: cipolleschi fbshipit-source-id: fb87df345b14568c750482e5c68be53551a9acbb # Conflicts: # scripts/release-utils.js
Summary: This PR makes sure that the `preapre_package_for_release` script fail fast if there is already a tag for the desired version on github. ## Changelog [General] [Added] - Make the `prepare_package_for_release` fail if there is already a git tag with that version Pull Request resolved: facebook#35305 Test Plan: Tested manually. The script is currently only invoked during the release process. <img width="1238" alt="Screenshot 2022-11-10 at 12 24 03" src="https://user-images.githubusercontent.com/11162307/201090947-274c1b1c-0b6a-4619-bc85-fa60e5eaeee1.png"> Reviewed By: cortinico Differential Revision: D41403159 Pulled By: cipolleschi fbshipit-source-id: fb87df345b14568c750482e5c68be53551a9acbb
Summary
This PR makes sure that the
preapre_package_for_release
script fail fast if there is already a tag for the desired versionon github.
Changelog
[General] [Added] - Make the
prepare_package_for_release
fail if there is already a git tag with that versionTest Plan
Tested manually. The script is currently only invoked during the release process.