diff --git a/README.md b/README.md index 3f9bceb..c0ffcb1 100644 --- a/README.md +++ b/README.md @@ -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. | diff --git a/action.yml b/action.yml index 1536dd2..9668b48 100644 --- a/action.yml +++ b/action.yml @@ -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