The prComment configuration controls how Relizy posts release information as comments on your pull requests and merge requests. It supports both GitHub and GitLab, with two comment modes.
Finds and updates the existing Relizy comment instead of creating a new one. Uses a hidden HTML marker (<!-- relizy-pr-comment -->) to identify the previous comment:
PR Comment Configuration
Configure automatic PR/MR comment posting with release information.
Overview
The
prCommentconfiguration controls how Relizy posts release information as comments on your pull requests and merge requests. It supports both GitHub and GitLab, with two comment modes.Configuration Structure
mode
'append' | 'update''append'Controls how Relizy manages comments on the PR/MR.
Append Mode
Creates a new comment each time. This preserves a history of all release attempts on the PR:
Update Mode
Finds and updates the existing Relizy comment instead of creating a new one. Uses a hidden HTML marker (
<!-- relizy-pr-comment -->) to identify the previous comment:If no previous comment is found, a new one is created.
TIP
Use
updatemode in CI/CD pipelines to keep your PRs clean — only one Relizy comment will ever appear on the PR.release.prComment
booleantrueEnable or disable PR comment posting in the release workflow:
To disable:
Or use the CLI flag:
Complete Examples
Append Mode (Default)
Update Mode
Disabled
Authentication
PR comments use the same tokens as provider releases. No additional token configuration is needed:
Environment Variables:
RELIZY_GITHUB_TOKENorGITHUB_TOKENorGH_TOKENRELIZY_GITLAB_TOKENorGITLAB_TOKENorGITLAB_API_TOKENorCI_JOB_TOKENIntegration with Release Workflow
PR comment posting is automatically triggered when enabled in the
releaseconfiguration:Then run:
This will:
Standalone Usage
You can also post PR comments independently using the
pr-commentcommand:See the CLI reference for more details.
See Also