build(deps): updating all deps to latest and assoc code updates

This commit is contained in:
Michael Shick 2020-07-06 12:03:13 -04:00
parent 1fbf288a23
commit 8368d23e75
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61
3 changed files with 989 additions and 1187 deletions

View file

@ -1,8 +1,7 @@
import * as core from '@actions/core' import * as core from '@actions/core'
import * as github from '@actions/github' import * as github from '@actions/github'
import {HttpClient} from '@actions/http-client' import {HttpClient} from '@actions/http-client'
import {Endpoints, RequestHeaders} from '@octokit/types' import {Endpoints, RequestHeaders, IssuesListCommentsResponseData} from '@octokit/types'
import {Octokit} from '@octokit/rest'
type ListCommitPullsResponse = Endpoints['GET /repos/:owner/:repo/commits/:commit_sha/pulls']['response']['data'] type ListCommitPullsResponse = Endpoints['GET /repos/:owner/:repo/commits/:commit_sha/pulls']['response']['data']
@ -43,7 +42,7 @@ const getIssueNumberFromCommitPullsList = (commitPullsList: ListCommitPullsRespo
const isMessagePresent = ( const isMessagePresent = (
message: AddPrCommentInputs['message'], message: AddPrCommentInputs['message'],
comments: Octokit.IssuesListCommentsResponse, comments: IssuesListCommentsResponseData,
login?: string, login?: string,
): boolean => { ): boolean => {
const cleanRe = new RegExp('\\R|\\s', 'g') const cleanRe = new RegExp('\\R|\\s', 'g')
@ -106,7 +105,7 @@ const run = async (): Promise<void> => {
return return
} }
const octokit = new github.GitHub(repoToken) const octokit = github.getOctokit(repoToken)
let shouldCreateComment = true let shouldCreateComment = true

2149
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -29,23 +29,23 @@
"homepage": "https://github.com/mshick/add-pr-comment#readme", "homepage": "https://github.com/mshick/add-pr-comment#readme",
"dependencies": { "dependencies": {
"@actions/core": "^1.2.4", "@actions/core": "^1.2.4",
"@actions/github": "^2.2.0", "@actions/github": "^4.0.0",
"@actions/http-client": "^1.0.8" "@actions/http-client": "^1.0.8"
}, },
"devDependencies": { "devDependencies": {
"@octokit/types": "^5.0.1", "@octokit/types": "^5.0.1",
"@types/jest": "^25.2.3", "@types/jest": "^26.0.3",
"@types/node": "^12.12.42", "@types/node": "^12.12.42",
"@typescript-eslint/eslint-plugin": "^3.0.0", "@typescript-eslint/eslint-plugin": "^3.5.0",
"@typescript-eslint/parser": "^3.0.0", "@typescript-eslint/parser": "^3.5.0",
"@zeit/ncc": "^0.22.3", "@zeit/ncc": "^0.22.3",
"eslint": "^7.0.0", "eslint": "^7.4.0",
"eslint-config-prettier": "^6.11.0", "eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3", "eslint-plugin-prettier": "^3.1.4",
"jest": "^26.0.1", "jest": "^26.1.0",
"nock": "^12.0.3", "nock": "^13.0.2",
"prettier": "^2.0.5", "prettier": "^2.0.5",
"ts-jest": "^26.0.0", "ts-jest": "^26.1.1",
"typescript": "^3.9.3" "typescript": "^3.9.6"
} }
} }