An open API service indexing awesome lists of open source software.

https://github.com/beakyn/gha-comment-pull-request

Action to add comments and edit description in pull requests.
https://github.com/beakyn/gha-comment-pull-request

github-action javascript workflow

Last synced: 10 months ago
JSON representation

Action to add comments and edit description in pull requests.

Awesome Lists containing this project

README

          

Beakyn

# Comment Pull Request

Action to add comments and edit description in pull requests

## Pre-requisites

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.

## Inputs

`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

## Example

```yaml
- 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
```