---
url: https://relizy.dev/cli/pr-comment.md
description: >-
  Post the release comment on the open pull request or merge request of the
  current branch.
---

# {{ $frontmatter.title }}

{{ $frontmatter.description }}

## Usage

```bash
relizy pr-comment
```

Comments the versions, the tags, the packages and the install commands of the project, read from the `package.json` files (see [The Comment of `relizy pr-comment`](./../guide/pr-comment.md#the-comment-of-relizy-pr-comment)). `relizy release` posts the summary of the release instead. Without pull request, the command warns and posts nothing.

Its option:

* `--pr-comment-mode <mode>`: `update` the previous comment, `append` a new one, or `recreate` it (a new comment, the previous one deleted), over [`prComment.mode`](./../config/pr-comment.md#mode).

The [global options](./commands.md) apply:

* `--pr-number <number>`: the pull request or merge request to comment, when relizy cannot find it (a pull request from a fork, a GitLab merged results pipeline, see [Finding the Pull Request](./../guide/pr-comment.md#finding-the-pull-request));
* `--dry-run`: find the pull request (the API of the provider is called) and show the comment, without posting it;
* `--config`, `--log-level`.

```bash
relizy pr-comment --pr-number 42 --dry-run
```

It needs a GitHub or GitLab token: see [Tokens](./../guide/pr-comment.md#tokens).

## See Also

* [PR Comments](./../guide/pr-comment.md)
* [PR Comment Configuration](./../config/pr-comment.md)
* [`prComment()`](./../api/pr-comment.md)
