Skip to content
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

Merged
merged 4 commits into from
Apr 12, 2018
Merged

Conversation

agjohnson
Copy link
Contributor

This is a fork of the .org release tooling.

@agjohnson agjohnson requested a review from humitos April 6, 2018 03:46
Copy link
Member

@ericholscher ericholscher left a 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. 👍

Copy link
Member

@humitos humitos left a 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!')
Copy link
Member

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.

Copy link
Contributor Author

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

@agjohnson agjohnson merged commit c844d63 into master Apr 12, 2018
@agjohnson agjohnson deleted the agj/add-release-tooling branch April 12, 2018 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants