Skip to content

PR Comment Configuration ​

Option of the release comment posted on the pull request or merge request - update the previous comment, add a new one, or replace it with a new one.

What the comment contains, how the pull request is found and the tokens it needs: PR Comments. In relizy release, the comment is posted when release.prComment is true (the default).

mode ​

  • Type: 'update' | 'append' | 'recreate'
  • Default: 'update'
ModeWhat it doesComments of Relizy on the pull request
updateEdits the previous comment of Relizy, or adds one when there is noneOne, where it was first posted
appendAdds a new comment at each runOne per run
recreateAdds a new comment, then deletes the previous oneOne, always at the bottom

Relizy finds its previous comment by a hidden marker (<!-- relizy-pr-comment -->). On a long pull request, GitHub and GitLab collapse the older comments: with update, the comment can end up hidden among them; recreate keeps it in sight, at the end of the conversation. When the new comment fails to post, the previous one stays.

ts
import { defineConfig } from 'relizy'

export default defineConfig({
  prComment: {
    mode: 'recreate',
  },
})

--pr-comment-mode <mode> overrides it for a run, on relizy release, relizy pr-comment and relizy merge-preview.

The mode applies to the merge preview too, except append: the merge preview keeps a single comment, updated with update and append, recreated with recreate.