-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add release tooling to common repo #4
Conversation
This is a fork of the .org release tooling.
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.
Glad to have this in common! Like the new integration bits as well. 👍
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.
This is really good.
I just left a suggestion to avoid releasing by mistake.
git_rev_parse = ctx.run('git rev-parse --abbrev-ref HEAD', hide=True) | ||
current_branch = git_rev_parse.stdout.strip() | ||
if current_branch != 'master': | ||
print('You must be on master branch!') |
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.
What about adding something like
input("""
Hey! Did you already:
1. ran `invoke prepare`
2. organize CHANGELOG.rst removing invalid PRs
3. cleanup commits
4. etc...
? [y/N]""")
to avoid mistakes and remind what are the proper steps to be followed.
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.
This would make a good enhancement. I think we can automate the checks though:
- Check setup.cfg for a matching version to the one you're releasing
- Check the changelog for a version string matching the one you're releasing
- Check that setupcfg and changelog changes are commited
This is a fork of the .org release tooling.