From 17e10153fcf16d273da0648ea7fd787b22f70b9c Mon Sep 17 00:00:00 2001 From: Ross Brodbeck Date: Mon, 11 May 2020 10:48:50 -0400 Subject: [PATCH] Update docs and version --- README.md | 6 +++--- package.json | 2 +- src/IssueProcessor.ts | 18 ++++++++---------- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 749a9a9b..5130aa92 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' 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; }