Skip to content

pr-comment ​

Post the release comment on the open pull request or merge request of the current branch.

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). 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.

The global options 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);
  • --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.

See Also ​