Jerome1337 / comment-pull-request

Action to add comments and edit description in pull requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

- name: Comment deploy URL to pull request
  uses: Jerome1337/comment-pull-request@v1.0.4
  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

About

Action to add comments and edit description in pull requests.

License:MIT License


Languages

Language:JavaScript 100.0%