Skip to content

PR Comment from File

Actions
Leaves a comment on an open PR based on the contents of a file
1.0.0
Latest
Star (21)

PR Comment Action

A GitHub action that will comment on the relevant open PR with a file contents when a commit is pushed.

Usage

  • Requires the GITHUB_TOKEN secret.
  • Requires the comment's artifact in the msg parameter.
  • Supports push and pull_request event types.

Sample workflow

  
name: example
on: pull_request
jobs:
  example:
    name: example
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - run: mkdir -p output/
      - run: echo "This is fancy a comment" > output/results.txt
      - uses: actions/upload-artifact@v1
        with:
          name: results
          path: output
      - uses: actions/download-artifact@v1
        with:
          name: results
      - name: comment PR
        uses: machine-learning-apps/pr-comment@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          path: results/results.txt

PR Comment from File is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Leaves a comment on an open PR based on the contents of a file
1.0.0
Latest

PR Comment from File is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.