Skip to content

Enforce Changelog Updates

Request changes if a PR that meets specified criteria lacks an update to the project's changelog.

Review Changelog

Configuration Description

Conditions (All must be true):

  • The branch name contains the phrase feature
  • The PR lacks changes to the docs/ file

Automation Actions:

  • Apply a yellow label that says ⚠️ Missing Changelog
  • Request changes and post a comment explaining why.

Review Changelog

# -*- mode: yaml -*-
  version: 1.0
  # Request changes for new features that lack changelog updates.
      - {{ | includes(term="feature") }}
      - {{ files | match(regex=r/^docs\/changelog\.md$/) | nope }}
      - action: add-label@v1
          label: "⚠️ Missing Changelog"
          color: {{ colors.yellow }}
      - action: add-comment@v1
          comment: | 
            All new features require an update to the changelog. Please modify your PR to include any relevant changelog updates.

  yellow: 'fbca04'

Special thanks to Boemo W Mmopelwa for providing this example.

Additional Resources

gitStream is a workflow automation tool that enables you to use YAML configuration files to optimize your code review process. Add context to PRs, find code experts for reviews, and automate the merge process to maximize developer productivity.

Learn More about how gitStream Works.

Related Automations:

More Automations can be found on the Automation Library and Integrations pages.