Skip to content

Conversation

@jrnt30
Copy link
Contributor

@jrnt30 jrnt30 commented Aug 17, 2018

  • Adds the ability to include the PR author in the change log for some props.
  • Additionally adds an explicit flag for github token and defaults to ENV.

- Adds the ability to include the PR author in the change log for some props.
- Additionally adds an explicit flag for github token and defaults to ENV.
main.go Outdated
flag.BoolVar(&conf.IncludeCommits, "include-commits", conf.IncludeCommits, "Include commit messages")
flag.BoolVar(&conf.SinceLatestRelease, "since-latest-release", conf.SinceLatestRelease, "Stop at latest release's commit")
flag.BoolVar(&conf.IncludeAuthor, "include-author", conf.IncludeAuthor, "Include author of PR in message")
flag.StringVar(&conf.GitHubToken, "github-token", os.Getenv("GITHUB_TOKEN"), "Github Token. (Defaults to env GITHUB_TOKEN)")
Copy link
Owner

Choose a reason for hiding this comment

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

I like the flag, but I'd prefer not to expose the token via the --help text (because it will print the default).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, changed to hide that during --help and set during actual parsing

@buchanae
Copy link
Owner

Thanks for doing this. Nice improvements!

@buchanae buchanae merged commit fb6f56b into buchanae:master Aug 20, 2018
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