Customizable Comments

Auto-replies with customizable comments based on template vars
Screenshot of Customizable Comments app

Repository

tizmagik/customizable-comments

Authors

tizmagik

Updated

January 9, 2023

Configuration options

📒 Currently, this Probot App only supports pull_request.opened events.

I would be happy to add more, just submit a PR or Issue with what you'd find useful.

Built-in template vars

namevalueused when
$BRANCHThe branch name of the PRpull_request
$BRANCH_SANITIZEDThe branch name of the PR but sanitized as safe for URL prefixes (lowercased, . and / are replaced with -)pull_request

Custom template vars

You can configure your own variable replacements using the vars: block in the yml file. See the example below:

Example

vars:
  - name: $MY_CUSTOM
    value: my-value

pull_request:
  opened:
    template: |
      Here's a helpful URL based on the branch name: https://$BRANCH.something.example.com
      And here's my custom value: $MY_CUSTOM

The above will auto-reply with a comment like so:

Here's a helpful URL based on the branch name: https://the-branch.something.example.com
And here's my custom value: my-custom

Get occasional updates on new apps & features.

Star

with by the Probot community

Code licensed ISC Docs licensed CC-BY-4.0