Skip to content

Get GitHub Pull Request Reviews

Actions
Dumps to a JSON file, all the reviews associated with a specified pull request from the GitHub API
v1.2
Latest
Star (0)

What does it do?

Dumps to a JSON file, all the reviews associated with a specified pull request from the GitHub API.

Usage

Simply add the action to your GitHub Action / Workflow.

- name: Get GitHub Pull Request Reviewers
  # Versions come from https://github.com/LiamPerson/get-reviews-action/releases
  uses: LiamPerson/get-reviews-action@SPECIFY_ME # Specify the version you want by writing in a tag from the link above. E.g: v1.0

The output will be a file called reviews.json in the root of your repository.

Types

The types in this JSON file are defined here: Please see ReviewResponse type.

Gotchas

Please ensure that you run this action AFTER any action that would modify files in the working directory as such actions may end up deleting the output from this action!

Such actions include: actions/checkout@v2!

Developers

To test this action simply:

  1. Add the following to your .env file:
GITHUB_TOKEN=your_github_token
GITHUB_REPOSITORY=some/repository
PULL_REQUEST_ID=1337 # or some other pull request id
  1. Run the following command:
npx ts-node src/index.ts

Get GitHub Pull Request Reviews 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

Dumps to a JSON file, all the reviews associated with a specified pull request from the GitHub API
v1.2
Latest

Get GitHub Pull Request Reviews 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.