Skip to content

Allow changelogs to be managed with trailers

Brian Williams requested to merge bwill/changelog-modes into master

On https://gitlab.com/gitlab-org/security-products/analyzers/container-scanning, we manage CHANGELOG.md using commit trailers instead of manually adding changelog entries. This MR allows Danger to have different modes of operation for changelogs by setting DANGER_CHANGELOG_MODE.

The modes are:

  • manual (default): Uses the existing behavior of checking for new entries in CHANGELOG.md
  • trailer: Checks for commit trailers
  • deactivated: No changelog rules

Testing these changes on: gitlab-org/security-products/analyzers/container-scanning!2541 (comment 628133843)

Edited by Brian Williams

Merge request reports