Skip to content

Commit

Permalink
feat(inputs): make token input optional
Browse files Browse the repository at this point in the history
fallback to `github.token` (aka `$GITHUB_TOKEN`) if it's not provided
  • Loading branch information
tmillr committed Dec 27, 2022
1 parent ae8a878 commit 30c2e78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ branding:

inputs:
token:
description: The token used for posting the comments (e.g. `github.token`).
required: true
description: The token used for posting the comments.
required: false
default: ${{ github.token }}
issueNumber:
description: >
Issue to comment on for each breaking change commit found.
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const filterFn = (msg) =>

export function getOctokit(
auth = core.getInput("token", {
required: true,
required: false,
trimWhitespace: true,
})
) {
Expand Down

0 comments on commit 30c2e78

Please sign in to comment.