Without releaseContext, the comment is the one of relizy pr-comment, read from the package.json files. With a releaseContext, it follows its status (success, no-release, failed); with its report, the comment is the summary of the release, as in release().
Resolves true when the comment is posted, or with dryRun when a pull request is found (always with prNumber, even without token), false otherwise: without pull request (the warning tells to set prNumber), without token, or when the API of the provider refuses it (with a warning).
Rejects on an error of the config or of the project (e.g. an unreadable root package.json). release() catches it: a failed comment never fails a release.
dryRun still calls the API of the provider to find the pull request, and posts nothing.
prComment()
Post the release comment on the pull request or merge request from code, and know whether it was posted.
Signature
Options:
PrCommentOptions, andReleaseContextforreleaseContext.Behavior
releaseContext, the comment is the one ofrelizy pr-comment, read from thepackage.jsonfiles. With areleaseContext, it follows itsstatus(success,no-release,failed); with itsreport, the comment is the summary of the release, as inrelease().truewhen the comment is posted, or withdryRunwhen a pull request is found (always withprNumber, even without token),falseotherwise: without pull request (the warning tells to setprNumber), without token, or when the API of the provider refuses it (with a warning).package.json).release()catches it: a failed comment never fails a release.dryRunstill calls the API of the provider to find the pull request, and posts nothing.Example
See Also
relizy pr-comment