Per a request in #60, this patch provides functionality for verifying that the version to tag has an associated release date in the CHANGELOG file, aborting if it does not.
Details:
Adds a new optional argument to ChangelogParser::findChangelogForVersion(), bool $strict = false. When true, it will omit TBD as a valid release date, and thus raise an exception.
Creates VerifyVersionHasReleaseDateListener, which listens to the TagReleaseEvent, and checks to see if the changelog includes the release date. If not, it notifies the event that tagging has failed, and sends output detailing what changes are necessary.
Adds the new listener in the TagReleaseEvent listeners, after the listener that parses the changelog, but before the one that formats it for the tag.
Per a request in #60, this patch provides functionality for verifying that the version to tag has an associated release date in the CHANGELOG file, aborting if it does not.
Details:
ChangelogParser::findChangelogForVersion()
,bool $strict = false
. Whentrue
, it will omitTBD
as a valid release date, and thus raise an exception.VerifyVersionHasReleaseDateListener
, which listens to theTagReleaseEvent
, and checks to see if the changelog includes the release date. If not, it notifies the event that tagging has failed, and sends output detailing what changes are necessary.TagReleaseEvent
listeners, after the listener that parses the changelog, but before the one that formats it for the tag.