Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: default repo-token to github.token #22

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 1 addition & 7 deletions README.md
Expand Up @@ -28,7 +28,7 @@ All parameters are optional, except `github-token`.

- **`github-token`**
- GitHub access token, value must be `${{ github.token }}`
- Required
- Optional, defaults to `github.token`
- **`issue-lock-inactive-days`**
- Number of days of inactivity before a closed issue is locked
- Optional, defaults to `365`
Expand Down Expand Up @@ -106,8 +106,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
```

Edit the workflow after the initial backlog of issues and pull requests
Expand Down Expand Up @@ -139,7 +137,6 @@ jobs:
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '365'
issue-exclude-created-before: ''
issue-exclude-labels: ''
Expand All @@ -164,7 +161,6 @@ or those with the `upstream` or `help-wanted` labels applied.
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-exclude-created-before: '2018-01-01T00:00:00Z'
issue-exclude-labels: 'upstream, help-wanted'
process-only: 'issues'
Expand All @@ -177,7 +173,6 @@ with the `wip` label applied.
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
pr-exclude-labels: 'wip'
process-only: 'prs'
```
Expand All @@ -191,7 +186,6 @@ and apply the `outdated` label to issues.
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-labels: 'outdated'
issue-lock-comment: >
This issue has been automatically locked since there
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Expand Up @@ -4,7 +4,8 @@ author: 'Armin Sebastian'
inputs:
github-token:
description: 'GitHub access token'
required: true
required: false
default: ${{ github.token }}
issue-lock-inactive-days:
description: 'Number of days of inactivity before a closed issue is locked'
default: '365'
Expand Down