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

Update dependencies #894

Merged
merged 3 commits into from Sep 2, 2021
Merged
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
6 changes: 3 additions & 3 deletions __test__/utils.unit.test.ts
Expand Up @@ -58,7 +58,7 @@ describe('utils tests', () => {
utils.getRemoteDetail(remoteUrl)
// Fail the test if an error wasn't thrown
expect(true).toEqual(false)
} catch (e) {
} catch (e: any) {
expect(e.message).toEqual(
`The format of '${remoteUrl}' is not a valid GitHub repository URL`
)
Expand Down Expand Up @@ -104,7 +104,7 @@ describe('utils tests', () => {
utils.parseDisplayNameEmail(displayNameEmail1)
// Fail the test if an error wasn't thrown
expect(true).toEqual(false)
} catch (e) {
} catch (e: any) {
expect(e.message).toEqual(
`The format of '${displayNameEmail1}' is not a valid email address with display name`
)
Expand All @@ -115,7 +115,7 @@ describe('utils tests', () => {
utils.parseDisplayNameEmail(displayNameEmail2)
// Fail the test if an error wasn't thrown
expect(true).toEqual(false)
} catch (e) {
} catch (e: any) {
expect(e.message).toEqual(
`The format of '${displayNameEmail2}' is not a valid email address with display name`
)
Expand Down
74 changes: 58 additions & 16 deletions dist/index.js

Large diffs are not rendered by default.

5,050 changes: 1,783 additions & 3,267 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Expand Up @@ -29,27 +29,27 @@
},
"homepage": "https://github.com/peter-evans/create-pull-request",
"dependencies": {
"@actions/core": "1.4.0",
"@actions/core": "1.5.0",
"@actions/exec": "1.1.0",
"@octokit/core": "3.5.1",
"@octokit/plugin-paginate-rest": "2.14.0",
"@octokit/plugin-rest-endpoint-methods": "5.5.0",
"@octokit/plugin-paginate-rest": "2.16.0",
"@octokit/plugin-rest-endpoint-methods": "5.9.0",
"https-proxy-agent": "5.0.0",
"uuid": "8.3.2"
},
"devDependencies": {
"@types/jest": "26.0.24",
"@types/node": "16.4.0",
"@typescript-eslint/parser": "4.28.4",
"@vercel/ncc": "0.29.0",
"eslint": "7.31.0",
"eslint-plugin-github": "4.1.5",
"@types/jest": "27.0.1",
"@types/node": "16.7.10",
"@typescript-eslint/parser": "4.30.0",
"@vercel/ncc": "0.30.0",
"eslint": "7.32.0",
"eslint-plugin-github": "4.2.0",
"eslint-plugin-jest": "24.4.0",
"jest": "27.0.6",
"jest-circus": "27.0.6",
"jest": "27.1.0",
"jest-circus": "27.1.0",
"js-yaml": "4.1.0",
"prettier": "2.3.2",
"ts-jest": "27.0.4",
"typescript": "4.3.5"
"ts-jest": "27.0.5",
"typescript": "4.4.2"
}
}
2 changes: 1 addition & 1 deletion src/create-pull-request.ts
Expand Up @@ -237,7 +237,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
}
}
}
} catch (error) {
} catch (error: any) {
core.setFailed(error.message)
} finally {
// Remove auth and restore persisted auth config if it existed
Expand Down
2 changes: 1 addition & 1 deletion src/git-auth-helper.ts
Expand Up @@ -33,7 +33,7 @@ export class GitAuthHelper {
try {
await this.setExtraheaderConfig(this.persistedExtraheaderConfigValue)
core.info('Persisted git credentials restored')
} catch (e) {
} catch (e: any) {
core.warning(e)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/github-helper.ts
Expand Up @@ -60,7 +60,7 @@ export class GitHubHelper {
html_url: pull.html_url,
created: true
}
} catch (e) {
} catch (e: any) {
if (
e.message &&
e.message.includes(`A pull request already exists for ${headBranch}`)
Expand Down Expand Up @@ -165,7 +165,7 @@ export class GitHubHelper {
pull_number: pull.number,
...requestReviewersParams
})
} catch (e) {
} catch (e: any) {
if (e.message && e.message.includes(ERROR_PR_REVIEW_FROM_AUTHOR)) {
core.warning(ERROR_PR_REVIEW_FROM_AUTHOR)
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -29,7 +29,7 @@ async function run(): Promise<void> {
core.debug(`Inputs: ${inspect(inputs)}`)

await createPullRequest(inputs)
} catch (error) {
} catch (error: any) {
core.setFailed(error.message)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -134,7 +134,7 @@ export function fileExistsSync(path: string): boolean {
let stats: fs.Stats
try {
stats = fs.statSync(path)
} catch (error) {
} catch (error: any) {
if (error.code === 'ENOENT') {
return false
}
Expand Down