-
-
Notifications
You must be signed in to change notification settings - Fork 0
UnreleasedEntryChecker
github-actions edited this page Apr 20, 2026
·
1 revision
Compares unreleased changelog entries against the current branch or a base ref.
- Full name:
\FastForward\DevTools\Changelog\Checker\UnreleasedEntryChecker - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\DevTools\Changelog\Checker\UnreleasedEntryCheckerInterface - This class is a Final class
Constructs a new UnreleasedEntryChecker.
public __construct(\FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \FastForward\DevTools\Git\GitClientInterface $gitClient, \FastForward\DevTools\Changelog\Parser\ChangelogParserInterface $parser): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$filesystem |
\FastForward\DevTools\Filesystem\FilesystemInterface | |
$gitClient |
\FastForward\DevTools\Git\GitClientInterface | the Git client used for baseline inspection |
$parser |
\FastForward\DevTools\Changelog\Parser\ChangelogParserInterface |
Checks if there are pending unreleased entries in the changelog compared to a given reference.
public hasPendingChanges(string $file, string|null $againstReference = null): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$file |
string | the changelog file path to inspect |
$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