mirror of
https://github.com/CodelyTV/pr-size-labeler.git
synced 2025-02-15 09:32:48 -05:00
make github_token to optional (#87)
Co-authored-by: John Kuhn <john@useintegral.com>
This commit is contained in:
parent
2f1c419d06
commit
1c3422395d
2 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,6 @@ jobs:
|
|||
steps:
|
||||
- uses: codelytv/pr-size-labeler@v1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
xs_label: 'size/xs'
|
||||
xs_max_size: '10'
|
||||
s_label: 'size/s'
|
||||
|
@ -71,7 +70,7 @@ jobs:
|
|||
|
||||
| Name | Required | Default Value | Description |
|
||||
|-------------------------|----------|----------------------|---------------------------------------------------------------------------------------------------------------------------|
|
||||
| `GITHUB_TOKEN` | Yes | Automatically supplied| GitHub token needed to interact with the repository. |
|
||||
| `GITHUB_TOKEN` | No | Automatically supplied| GitHub token needed to interact with the repository. |
|
||||
| `xs_label` | No | 'size/xs' | Label for very small-sized PRs. |
|
||||
| `xs_max_size` | No | '10' | Maximum number of changes allowed for XS-sized PRs. |
|
||||
| `s_label` | No | 'size/s' | Label for small-sized PRs. |
|
||||
|
|
|
@ -2,8 +2,9 @@ name: 'Pull Request size labeler'
|
|||
description: 'Label a PR based on the amount of changes'
|
||||
inputs:
|
||||
GITHUB_TOKEN:
|
||||
description: 'GitHub token'
|
||||
required: true
|
||||
description: 'GitHub token needed to interact with the repository'
|
||||
required: false
|
||||
default: ${{ github.token }}
|
||||
xs_label:
|
||||
description: 'Label for xs PR'
|
||||
required: false
|
||||
|
|
Loading…
Add table
Reference in a new issue