-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
32 lines (31 loc) · 1.25 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: 'Get GitHub Pull Request Reviews'
description: 'Dumps to a JSON file, all the reviews associated with a specified pull request from the GitHub API.'
author: 'Liam Pillay'
permissions:
pull-requests: read
inputs:
PULL_REQUEST_ID:
description: 'The ID of the pull request to get the reviews of'
required: true
GITHUB_REPOSITORY:
description: 'The name of the GitHub repository the pull request is on. Must be in the format `owner/repo`'
required: true
GITHUB_TOKEN:
description: 'A GitHub access token that has permission to read the target pull request.'
required: true
FILE_NAME_OVERRIDE:
description: 'The name of the file to write the reviews to. Please ensure you add the file extension `.json`! If not provided, the file will be named `reviews.json`'
required: false
MAXIMUM_PAGES_TO_QUERY:
description: 'The maximum amount of pages you want to query a pull request for reviews. Each page is 100 comments to check for reviews. Must be a number.'
required: false
default: '10'
outputs:
reviews_file_path:
description: 'The path to the newly created json file containing all the reviews of the specified pull request'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'book-open'
color: 'purple'