Skip to content

Commit dc1dd43

Browse files
Merge pull request #386 from technote-space/release/next-v5.2.18
release: v5.2.19
2 parents 82a8ea3 + e25ce83 commit dc1dd43

File tree

4 files changed

+415
-413
lines changed

4 files changed

+415
-413
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/github-action-helper",
3-
"version": "5.2.18",
3+
"version": "5.2.19",
44
"description": "Helper for GitHub Action.",
55
"keywords": [
66
"github",
@@ -41,26 +41,26 @@
4141
"@actions/github": "^5.0.0",
4242
"@octokit/openapi-types": "^9.7.0",
4343
"@octokit/plugin-rest-endpoint-methods": "^5.8.0",
44-
"@technote-space/github-action-log-helper": "^0.1.37",
44+
"@technote-space/github-action-log-helper": "^0.1.39",
4545
"shell-escape": "^0.2.0",
4646
"sprintf-js": "^1.1.2"
4747
},
4848
"devDependencies": {
4949
"@commitlint/cli": "^13.1.0",
5050
"@commitlint/config-conventional": "^13.1.0",
51-
"@technote-space/github-action-test-helper": "^0.7.24",
51+
"@technote-space/github-action-test-helper": "^0.7.25",
5252
"@types/jest": "^27.0.1",
53-
"@types/node": "^16.7.1",
54-
"@typescript-eslint/eslint-plugin": "^4.29.2",
55-
"@typescript-eslint/parser": "^4.29.2",
53+
"@types/node": "^16.7.5",
54+
"@typescript-eslint/eslint-plugin": "^4.29.3",
55+
"@typescript-eslint/parser": "^4.29.3",
5656
"eslint": "^7.32.0",
57-
"husky": "^7.0.1",
58-
"jest": "^27.0.6",
59-
"jest-circus": "^27.0.6",
57+
"husky": "^7.0.2",
58+
"jest": "^27.1.0",
59+
"jest-circus": "^27.1.0",
6060
"lint-staged": "^11.1.2",
61-
"nock": "^13.1.2",
61+
"nock": "^13.1.3",
6262
"ts-jest": "^27.0.5",
63-
"typescript": "^4.3.5"
63+
"typescript": "^4.4.2"
6464
},
6565
"publishConfig": {
6666
"access": "public"

src/api-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default class ApiHelper {
235235

236236
return true;
237237
} catch (error) {
238-
if (this.suppressBPError === true && this.isProtectedBranchError(error)) {
238+
if (this.suppressBPError === true && this.isProtectedBranchError(error as Error)) {
239239
this.callLogger(logger => logger.warn('Branch is protected.'));
240240
} else {
241241
throw error;

src/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export default class Command {
255255
const {stdout, stderr} = await this.execCommand(this.getCommand(commandWithArgs, quiet, suppressError), quiet, suppressOutput, stderrToStdout, cwd);
256256
return this.getCommandResult(commandWithArgs, altCommand, stderrToStdout, stdout, stderr);
257257
} catch (error) {
258-
throw new Error(this.getRejectedErrorMessage(command, altCommand, quiet, error));
258+
throw new Error(this.getRejectedErrorMessage(command, altCommand, quiet, error as ExecException));
259259
}
260260
}
261261
};

0 commit comments

Comments
 (0)