make github_token to optional (#87)

Co-authored-by: John Kuhn <john@useintegral.com>
This commit is contained in:
오지환 (Cooper) 2024-10-14 22:51:03 +09:00 committed by GitHub
parent 2f1c419d06
commit 1c3422395d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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. |

View file

@ -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