Action to add comments and edit description in pull requests
Create a workflow .yml file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.
pull-request-number
: Pull request number. This is required if not running in a pull_request event
description-message
: Append message to pull request description
comment-message
: Add comment to pull request
delete-previous-comment
: Delete previous comment
- name: Comment deploy URL to pull request
uses: Beakyn/gha-comment-pull-request@v1.0.1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
description-message: |
----
### Live Preview
:rocket: Released to https://${{steps.environment.outputs.deployUrl}}
comment-message: |
### Live Preview
:rocket: Released to https://${{steps.environment.outputs.deployUrl}}
delete-previous-comment: true