44 строки
1.6 KiB
YAML
44 строки
1.6 KiB
YAML
name: 'Privileged Requester'
|
|
description: 'Checks a PR against configurable criteria to determine whether or not the PR should be automatically approved'
|
|
branding:
|
|
icon: 'check'
|
|
color: 'green'
|
|
inputs:
|
|
github_token:
|
|
description: |
|
|
'The GitHub token used to create an authenticated client - Provided for you by default! - Repository scoped token'
|
|
|
|
You can use the default provided token or you can provide a PAT as an alternative robot user token
|
|
required: true
|
|
default: ${{ github.token }}
|
|
path:
|
|
description: 'Path where the privileged requester configuration can be found'
|
|
required: true
|
|
default: config/privileged-requester.yaml
|
|
prCreator:
|
|
description: 'The creator of the PR for this pull request event'
|
|
required: true
|
|
default: ${{ github.event.pull_request.user.login }}
|
|
prNumber:
|
|
description: 'The number of the PR for this pull request event'
|
|
required: true
|
|
default: ${{ github.event.pull_request.number }}
|
|
checkCommits:
|
|
description: 'An option to check that every commit in the PR is made from the privileged requester'
|
|
required: true
|
|
default: 'true'
|
|
checkDiff:
|
|
description: 'An option to check that the PR diff only has a removal diff, with no additions'
|
|
required: true
|
|
default: 'true'
|
|
checkLabels:
|
|
description: 'An option to check that the labels on the PR match those defined in the privileged requester config'
|
|
required: true
|
|
default: 'true'
|
|
outputs:
|
|
approved: # output will be available to future steps
|
|
description: "Whether or not the PR was approved - 'true' or 'false'"
|
|
runs:
|
|
using: 'node20'
|
|
main: 'dist/index.js'
|