Skip to content

Commit

Permalink
make github_token to optional (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: John Kuhn <[email protected]>
  • Loading branch information
134130 and johnlk authored Oct 14, 2024
1 parent 2f1c419 commit 1c34223
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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. |
Expand Down
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c34223

Please sign in to comment.