spotless-changelog icon indicating copy to clipboard operation
spotless-changelog copied to clipboard

Fail a PR if it changes source code without a changelog entry

Open nedtwigg opened this issue 5 years ago • 0 comments

Spotless Changelog can handle the case where a single git repository has multiple changelogs for its various components. However, it can be easy to miss when a changelog which is mostly about component A, actually also brushes againt component B, and it can be bad if you forget to add a changelog for component B.

Perhaps we should implement something like the following:

spotlessChangelog {
  ifAnyFilesChangedIn('./lib/**/*', './lib-extra/**/*').since('origin/main').thenEntryRequired()
  ...

The snippet above could have avoided a problem we had recently in spotless.

nedtwigg avatar Oct 05 '20 05:10 nedtwigg