Skip to content

Commit 0c4d615

Browse files
authored
Merge pull request #602 from xt0rted/repo-token
Default `repo-token` input to `GITHUB_TOKEN`
2 parents 21d269d + 8f38efa commit 0c4d615

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Updated node runtime from 12 to 16
6+
- Updated the `repo-token` input so it defaults to `GITHUB_TOKEN`. If you're already using this value you can remove this setting from your workflow.
67

78
## [1.2.0](https://github.com/xt0rted/slash-command-action/compare/v1.1.0...v1.2.0) - 2022-10-23
89

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ It will only run on the initial comment, not on edits, and when the action runs
1414
```yaml
1515
on: issue_comment
1616
name: Issue Comments
17+
permissions:
18+
issues: write
1719
jobs:
1820
check_comments:
1921
name: Check comments for /test
@@ -23,7 +25,6 @@ jobs:
2325
id: command
2426
uses: xt0rted/slash-command-action@v1
2527
with:
26-
repo-token: ${{ secrets.GITHUB_TOKEN }}
2728
command: test
2829
reaction: "true"
2930
reaction-type: "eyes"
@@ -39,7 +40,7 @@ jobs:
3940
4041
Name | Allowed values | Description
4142
-- | -- | --
42-
`repo-token` | `GITHUB_TOKEN` or a custom value | The token used to call the GitHub api.
43+
`repo-token` | `GITHUB_TOKEN` (default) or PAT | `GITHUB_TOKEN` token or a PAT.
4344
`command` | `[a-zA-Z0-9_]` | The command to act on. You can test how your command will be parsed [here](https://regex101.com/r/7XptVD).
4445

4546
### Optional

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ branding:
1010

1111
inputs:
1212
repo-token:
13-
description: The GITHUB_TOKEN secret
13+
description: GITHUB_TOKEN token or a PAT
1414
required: true
15+
default: ${{ github.token }}
1516

1617
command:
1718
description: The command to act on

0 commit comments

Comments
 (0)