Skip to content
git-pull-request

GitHub Action

Comment on PR

v0.1.0 Latest version

Comment on PR

git-pull-request

Comment on PR

Comment on pull requests

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Comment on PR

uses: harupy/[email protected]

Learn more about this action in harupy/comment-on-pr

Choose a version

Comment on PR

A GitHub action to add a comment on pull requests.

Usage Example

.github/workflows/example.yml

name: Add checkout commands
on: pull_request
jobs:
  comment:
    name: Add checkout commands
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - uses: harupy/comment-on-pr@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: template.md

.github/workflows/template.md

commands to checkout to this branch

```
git fetch upstream pull/{pull_id}/head:{branch_name}
git checkout {branch_name}
```

The template above creates:

comment_example