Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
book-open

GitHub Action

Get GitHub Pull Request Reviews

v1.0

Get GitHub Pull Request Reviews

book-open

Get GitHub Pull Request Reviews

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

Installation

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

              

- name: Get GitHub Pull Request Reviews

uses: LiamPerson/[email protected]

Learn more about this action in LiamPerson/get-reviews-action

Choose a version

get-reviews-action

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.

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.

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