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

Create a bot or process for creating releases and verifying commit guidelines #102

Open
alewitt2 opened this issue May 6, 2020 · 0 comments
Labels
enhancement New feature or request wishlist

Comments

@alewitt2
Copy link
Member

alewitt2 commented May 6, 2020

used these resources as examples.. may need to rewrite ourselves to not steal their work.
https://eslint.org/docs/developer-guide/contributing/pull-requests#step-2-make-your-changes
https://github.com/eslint/eslint-github-bot/blob/master/docs/commit-message-check.md
https://github.com/eslint/eslint-github-bot
https://github.com/probot/probot

useful command for generating release descriptions

git checkout master
git pull origin
export NUM_COMMITS=5
git log --pretty=format:"[\`%h\`](https://github.com/razee-io/$(basename $(git rev-parse --show-toplevel))/commit/%H) %s" -"${NUM_COMMITS}"

or a one line option to get the pretty print between HEAD and the latest release

git log --pretty=format:"[\`%h\`](https://github.com/razee-io/$(basename $(git rev-parse --show-toplevel))/commit/%H) %s" HEAD..."$(curl --silent https://api.github.com/repos/razee-io/$(basename $(git rev-parse --show-toplevel))/releases/latest | jq -r .target_commitish)" | pbcopy
@alewitt2 alewitt2 added the enhancement New feature or request label May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wishlist
Projects
None yet
Development

No branches or pull requests

2 participants