diff --git a/README.md b/README.md index 749a9a9b..2be839e4 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v1 + - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Message to comment on stale issues. If none provided, will not mark issues stale' @@ -52,7 +52,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v1 + - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' @@ -71,7 +71,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v1 + - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue message' @@ -84,4 +84,4 @@ jobs: ### Debugging -To see debug ouput from this action, you must set the secret `ACTIONS_STEP_DEBUG` to `true` in your repository. You can run this action in debug only mode (no actions will be taken on your issues) by passing `debug-only` `true` as an argument to the action. +To see debug output from this action, you must set the secret `ACTIONS_STEP_DEBUG` to `true` in your repository. You can run this action in debug only mode (no actions will be taken on your issues) by passing `debug-only` `true` as an argument to the action. diff --git a/package.json b/package.json index 81aaa420..244e55da 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "license": "MIT", "dependencies": { "@actions/core": "^1.2.3", - "@actions/github": "^2.1.1", + "@actions/github": "^2.2.0", "@octokit/rest": "^16.43.1", "semver": "^6.1.1" }, diff --git a/src/IssueProcessor.ts b/src/IssueProcessor.ts index d8426117..7188835f 100644 --- a/src/IssueProcessor.ts +++ b/src/IssueProcessor.ts @@ -254,16 +254,14 @@ export class IssueProcessor { // grab issues from github in baches of 100 private async getIssues(page: number): Promise { - const issueResult: OctoKitIssueList = await this.client.issues.listForRepo( - { - owner: github.context.repo.owner, - repo: github.context.repo.repo, - state: 'open', - labels: this.options.onlyLabels, - per_page: 100, - page - } - ); + const issueResult: OctoKitIssueList = await this.client.issues.listForRepo({ + owner: github.context.repo.owner, + repo: github.context.repo.repo, + state: 'open', + labels: this.options.onlyLabels, + per_page: 100, + page + }); return issueResult.data; }