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

Update changelog more consistently #3405

Merged
merged 1 commit into from
Dec 15, 2017
Merged

Conversation

agjohnson
Copy link
Contributor

  • Get the last modified date from git, not local file as normally expected
  • Make sure we're on master to run
  • Don't do reset to master on release

* Get the last modified date from git, not local file as normally expected
* Make sure we're on master to run
* Don't do reset to master on release
@agjohnson
Copy link
Contributor Author

More unrelated errors

# Get last modified date from Git instead of assuming the file metadata is
# correct. This can change depending on git reset, etc.
git_log = ctx.run('git log -1 --format="%ad" -- CHANGELOG.rst')
last_modified = parse(git_log.stdout.strip()).strftime('%Y-%m-%d')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should put a note in the changelog that it's auto-generated, and not to touch it manually.

Copy link
Contributor Author

@agjohnson agjohnson Dec 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, one of the benefits of this tool is that it only updates the changelog for last release. It does allow for authoring in between generating and commiting, so we can add deployment and migration notes, or more general description of some of the changes

@agjohnson agjohnson merged commit f1087d3 into master Dec 15, 2017
@agjohnson agjohnson deleted the agj/more-invoke-changes branch December 15, 2017 03:50
# Ensure we're on the master branch first
git_rev_parse = ctx.run('git rev-parse --abbrev-ref HEAD', hide=True)
current_branch = git_rev_parse.stdout.strip()
if current_branch != 'rel':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why rel here? shouldn't be master?

I mean, it checks if we are in rel and if not, it says "hey, you need to be on master"

Other, we want to ensure we are on rel not on master, right?

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