Comment
Comment a pull request.
The comment
action allows Mergify to post a comment on your pull request when
certain conditions are met.
The comment action is a powerful tool that can provide automated responses to various events in your pull request workflow. By customizing the conditions and the message, you can create a more interactive and responsive experience for your contributors.
Parameters
Section titled ParametersKey name | Value type | |
---|---|---|
bot_account | template | |
Mergify can impersonate a GitHub user to comment a pull request. If no | ||
message | template | |
The message to write as a comment. |
Examples
Section titled ExamplesNeeds Review
Section titled Needs ReviewIn this example, Mergify will post the message “Thank you for your contribution! A reviewer will be assigned soon.” when a pull request is labeled with “needs review”.
Warn of Conflicting Pull Requests
Section titled Warn of Conflicting Pull RequestsWhen a pull request is in conflict and cannot be merged, it’s nice to be notified automatically by Mergify. You can do this using this rule:
Merge Thank You
Section titled Merge Thank YouIn this example, Mergify will post the message “Thank you for your contribution! Your pull request has been merged.” when a pull request is merged.