-
Notifications
You must be signed in to change notification settings - Fork 334
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
Make changelog linting more effective #701
Comments
@rpl maybe we don't need a bot at all. Another idea: make the CI test look for TRAVIS_PULL_REQUEST, check its title (using the github api?), and run it through the changelog linter. |
@kumar303 👍 yeah, even better, I like it! we can use the above environment var and request the JSON description of the pull request, e.g. for #677 from the API URL https://api.github.com/repos/mozilla/web-ext/pulls/677 we get:
|
One thing to keep in mind about pull requests like the Greenkeeper ones is that if there is only one commit in the pull request, GitHub will use the lone commit message as the title for the merge commit. In other words, the title for the
|
I actually requested to bring the title in line with the format (greenkeeperio/greenkeeper#343) because it's not uncommon to pile on multiple commits to fix breakage from an upgrade. |
Is this a bug or feature request?
code quality enhancement
What is the current behavior?
When you develop locally or create a PR, you have to follow the commit message format. If you make a mistake, you'll get a failure locally. If you push a bad commit to your branch, you'll see failures forever unless you rewrite the commit history.
What is the expected or desired behavior?
This isn't very effective because ultimately a maintainer will squash and merge the PR to master, choosing a new commit message anyway. There is no linting for this message! As a maintainer myself, I also like to spend time on this final squashed message since it will go into the auto-generated changelog.
We should come up with a more effective linting strategy.
The first action items:
Next, we need a new linting approach. Ideas:
The text was updated successfully, but these errors were encountered: