Skip to content

Commit 1c34223

Browse files
오지환 (Cooper)johnlk
andauthored
make github_token to optional (#87)
Co-authored-by: John Kuhn <john@useintegral.com>
1 parent 2f1c419 commit 1c34223

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
steps:
4646
- uses: codelytv/pr-size-labeler@v1
4747
with:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4948
xs_label: 'size/xs'
5049
xs_max_size: '10'
5150
s_label: 'size/s'
@@ -71,7 +70,7 @@ jobs:
7170

7271
| Name | Required | Default Value | Description |
7372
|-------------------------|----------|----------------------|---------------------------------------------------------------------------------------------------------------------------|
74-
| `GITHUB_TOKEN` | Yes | Automatically supplied| GitHub token needed to interact with the repository. |
73+
| `GITHUB_TOKEN` | No | Automatically supplied| GitHub token needed to interact with the repository. |
7574
| `xs_label` | No | 'size/xs' | Label for very small-sized PRs. |
7675
| `xs_max_size` | No | '10' | Maximum number of changes allowed for XS-sized PRs. |
7776
| `s_label` | No | 'size/s' | Label for small-sized PRs. |

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: 'Pull Request size labeler'
22
description: 'Label a PR based on the amount of changes'
33
inputs:
44
GITHUB_TOKEN:
5-
description: 'GitHub token'
6-
required: true
5+
description: 'GitHub token needed to interact with the repository'
6+
required: false
7+
default: ${{ github.token }}
78
xs_label:
89
description: 'Label for xs PR'
910
required: false

0 commit comments

Comments
 (0)