Skip to content

UnreleasedEntryCheckerInterface

github-actions edited this page Apr 20, 2026 · 1 revision

Verifies that the changelog contains meaningful unreleased changes.

This is used to prevent merging changes that have not been documented in the changelog. It compares the unreleased entries in the changelog against the current branch or a specified reference (e.g., a base branch or commit hash).


  • Full name: \FastForward\DevTools\Changelog\Checker\UnreleasedEntryCheckerInterface

Methods

hasPendingChanges

Checks if there are pending unreleased entries in the changelog compared to a given reference.

public hasPendingChanges(string $file, string|null $againstReference = null): bool

This method MUST read the unreleased section of the changelog and compare it against the changes in the current branch or a specified reference. If there are entries in the unreleased section that are not present in the reference, it indicates that there are pending changes that have not been released yet. The method MUST return true if there are pending unreleased entries, and false otherwise.

Parameters:

Parameter Type Description
$file string the changelog file path, relative to the working directory or absolute
$againstReference string|null The reference to compare against (e.g., a branch or commit hash).

Return Value:

true if there are pending unreleased entries, false otherwise


Clone this wiki locally