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 generate_changelog script to remove PR IDs #6071

Conversation

johnwcallahan
Copy link
Contributor

Description

Previously PR IDs were included on each commit message (e.g. "Linode Configs (#1234)". These had to be removed manually after generating the changelog, so this just saves a few steps.

I also cleaned up the way the lines were being read from standard output.

To test, generate a changelog:

$ python3 generate_changelog.py v0.99.0 2020-01-31 upstream

Compare the results to running the same command on develop.

Previously Pull Request IDs were included on each commit message. Example: "My first commit (#1)". These had to be removed manually, so this saves a few steps.

I also cleaned up the way the lines were being read from standard output.
@johnwcallahan johnwcallahan self-assigned this Jan 31, 2020
commits = subprocess.check_output(git_log_command, subprocess.STDOUT).decode('utf-8').split('\n')

# Strip the first and last characters of each line, which are single quotes.
commits = [c[1:-1] for c in commits]
Copy link
Contributor

Choose a reason for hiding this comment

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

this is much cleaner

@johnwcallahan johnwcallahan merged commit d45614b into linode:develop Feb 6, 2020
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.

2 participants