Skip to content

Commit c3a32d9

Browse files
Merge pull request #284 from technote-space/release/next-v3.0.1
release: v3.0.2
2 parents fb0b195 + 99ed76f commit c3a32d9

File tree

3 files changed

+26
-67
lines changed

3 files changed

+26
-67
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/github-action-helper",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Helper to filter GitHub Action.",
55
"author": {
66
"name": "Technote",
@@ -27,15 +27,15 @@
2727
],
2828
"dependencies": {
2929
"@actions/core": "^1.2.4",
30-
"@actions/github": "^3.0.0",
30+
"@actions/github": "^4.0.0",
3131
"@octokit/plugin-rest-endpoint-methods": "^4.0.0",
3232
"shell-escape": "^0.2.0",
3333
"sprintf-js": "^1.1.2"
3434
},
3535
"devDependencies": {
3636
"@commitlint/cli": "^9.0.1",
3737
"@commitlint/config-conventional": "^9.0.1",
38-
"@technote-space/github-action-test-helper": "^0.4.0",
38+
"@technote-space/github-action-test-helper": "^0.5.1",
3939
"@types/jest": "^26.0.3",
4040
"@types/node": "^14.0.14",
4141
"@typescript-eslint/eslint-plugin": "^3.4.0",
@@ -58,6 +58,6 @@
5858
"lint": "eslint 'src/**/*.ts' '__tests__/**/*.ts' --cache",
5959
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
6060
"cover": "jest --coverage",
61-
"update": "ncu -u && yarn install && yarn upgrade && yarn audit"
61+
"update": "npx ncu -u && yarn install && yarn upgrade && yarn audit"
6262
}
6363
}

src/api-helper.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,13 @@ export default class ApiHelper {
281281
* @return {AsyncIterable<PullsListResponseData>} pull request list
282282
*/
283283
public pullsList = (params: PullsListParams): Promise<PullsListResponseData> => (this.octokit.paginate as PaginateInterface)(
284-
(this.octokit as RestEndpointMethods).pulls.list.endpoint.merge(Object.assign({
284+
(this.octokit as RestEndpointMethods).pulls.list,
285+
Object.assign({
285286
sort: 'created',
286287
direction: 'asc',
287288
}, params, {
288289
...this.context.repo,
289-
})),
290+
}),
290291
);
291292

292293
/**
@@ -546,10 +547,11 @@ export default class ApiHelper {
546547
* @return {Promise<Array<string>>} tags
547548
*/
548549
public getTags = async(): Promise<Array<string>> => (await (this.octokit.paginate as PaginateInterface)(
549-
(this.octokit as RestEndpointMethods).git.listMatchingRefs.endpoint.merge({
550+
(this.octokit as RestEndpointMethods).git.listMatchingRefs,
551+
{
550552
...this.context.repo,
551553
ref: 'tags/',
552-
}),
554+
},
553555
)).map((item): string => trimRef((item as GitListMatchingRefsResponseData[number]).ref));
554556

555557
/**

yarn.lock

Lines changed: 16 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.4.tgz#96179dbf9f8d951dd74b40a0dbd5c22555d186ab"
88
integrity sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==
99

10-
"@actions/github@^3.0.0":
11-
version "3.0.0"
12-
resolved "https://registry.yarnpkg.com/@actions/github/-/github-3.0.0.tgz#ce1b721a266ad5ac522da0c9c013c999009604bf"
13-
integrity sha512-zSYo0Pzh/AZt0DCBjCUhd9lNBECbbWnPqq5L32DZDTuEhjGJM8VSgOpKSol9climaJxhPJQhu+vUZIZuQi4Z1w==
10+
"@actions/github@^4.0.0":
11+
version "4.0.0"
12+
resolved "https://registry.yarnpkg.com/@actions/github/-/github-4.0.0.tgz#d520483151a2bf5d2dc9cd0f20f9ac3a2e458816"
13+
integrity sha512-Ej/Y2E+VV6sR9X7pWL5F3VgEWrABaT292DRqRU6R4hnQjPtC/zD3nagxVdXWiRQvYDh8kHXo7IDmG42eJ/dOMA==
1414
dependencies:
15-
"@actions/http-client" "^1.0.3"
16-
"@octokit/core" "^2.5.1"
17-
"@octokit/plugin-paginate-rest" "^2.2.0"
18-
"@octokit/plugin-rest-endpoint-methods" "^3.10.0"
15+
"@actions/http-client" "^1.0.8"
16+
"@octokit/core" "^3.0.0"
17+
"@octokit/plugin-paginate-rest" "^2.2.3"
18+
"@octokit/plugin-rest-endpoint-methods" "^4.0.0"
1919

20-
"@actions/http-client@^1.0.3":
20+
"@actions/http-client@^1.0.8":
2121
version "1.0.8"
2222
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.8.tgz#8bd76e8eca89dc8bcf619aa128eba85f7a39af45"
2323
integrity sha512-G4JjJ6f9Hb3Zvejj+ewLLKLf99ZC+9v+yCxoYf9vSyH+WkzPLB2LuUtRMGNkooMqdugGBFStIKXOuvH1W+EctA==
@@ -636,18 +636,6 @@
636636
dependencies:
637637
"@octokit/types" "^5.0.0"
638638

639-
"@octokit/core@^2.5.1":
640-
version "2.5.4"
641-
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-2.5.4.tgz#f7fbf8e4f86c5cc2497a8887ba2561ec8d358054"
642-
integrity sha512-HCp8yKQfTITYK+Nd09MHzAlP1v3Ii/oCohv0/TW9rhSLvzb98BOVs2QmVYuloE6a3l6LsfyGIwb6Pc4ycgWlIQ==
643-
dependencies:
644-
"@octokit/auth-token" "^2.4.0"
645-
"@octokit/graphql" "^4.3.1"
646-
"@octokit/request" "^5.4.0"
647-
"@octokit/types" "^5.0.0"
648-
before-after-hook "^2.1.0"
649-
universal-user-agent "^5.0.0"
650-
651639
"@octokit/core@^3.0.0":
652640
version "3.1.0"
653641
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.1.0.tgz#9c3c9b23f7504668cfa057f143ccbf0c645a0ac9"
@@ -678,34 +666,21 @@
678666
"@octokit/types" "^5.0.0"
679667
universal-user-agent "^5.0.0"
680668

681-
"@octokit/plugin-paginate-rest@^2.2.0":
669+
"@octokit/plugin-paginate-rest@^2.2.3":
682670
version "2.2.3"
683671
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.2.3.tgz#a6ad4377e7e7832fb4bdd9d421e600cb7640ac27"
684672
integrity sha512-eKTs91wXnJH8Yicwa30jz6DF50kAh7vkcqCQ9D7/tvBAP5KKkg6I2nNof8Mp/65G0Arjsb4QcOJcIEQY+rK1Rg==
685673
dependencies:
686674
"@octokit/types" "^5.0.0"
687675

688-
"@octokit/plugin-request-log@^1.0.0":
689-
version "1.0.0"
690-
resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz#eef87a431300f6148c39a7f75f8cfeb218b2547e"
691-
integrity sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw==
692-
693-
"@octokit/[email protected]", "@octokit/plugin-rest-endpoint-methods@^4.0.0":
676+
"@octokit/plugin-rest-endpoint-methods@^4.0.0":
694677
version "4.0.0"
695678
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.0.0.tgz#b02a2006dda8e908c3f8ab381dd5475ef5a810a8"
696679
integrity sha512-emS6gysz4E9BNi9IrCl7Pm4kR+Az3MmVB0/DoDCmF4U48NbYG3weKyDlgkrz6Jbl4Mu4nDx8YWZwC4HjoTdcCA==
697680
dependencies:
698681
"@octokit/types" "^5.0.0"
699682
deprecation "^2.3.1"
700683

701-
"@octokit/plugin-rest-endpoint-methods@^3.10.0":
702-
version "3.17.0"
703-
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.17.0.tgz#d8ba04eb883849dd98666c55bf49d8c9fe7be055"
704-
integrity sha512-NFV3vq7GgoO2TrkyBRUOwflkfTYkFKS0tLAPym7RNpkwLCttqShaEGjthOsPEEL+7LFcYv3mU24+F2yVd3npmg==
705-
dependencies:
706-
"@octokit/types" "^4.1.6"
707-
deprecation "^2.3.1"
708-
709684
"@octokit/request-error@^2.0.0":
710685
version "2.0.2"
711686
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0"
@@ -729,23 +704,6 @@
729704
once "^1.4.0"
730705
universal-user-agent "^5.0.0"
731706

732-
"@octokit/rest@^18.0.0":
733-
version "18.0.0"
734-
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.0.0.tgz#7f401d9ce13530ad743dfd519ae62ce49bcc0358"
735-
integrity sha512-4G/a42lry9NFGuuECnua1R1eoKkdBYJap97jYbWDNYBOUboWcM75GJ1VIcfvwDV/pW0lMPs7CEmhHoVrSV5shg==
736-
dependencies:
737-
"@octokit/core" "^3.0.0"
738-
"@octokit/plugin-paginate-rest" "^2.2.0"
739-
"@octokit/plugin-request-log" "^1.0.0"
740-
"@octokit/plugin-rest-endpoint-methods" "4.0.0"
741-
742-
"@octokit/types@^4.1.6":
743-
version "4.1.10"
744-
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-4.1.10.tgz#e4029c11e2cc1335051775bc1600e7e740e4aca4"
745-
integrity sha512-/wbFy1cUIE5eICcg0wTKGXMlKSbaAxEr00qaBXzscLXpqhcwgXeS6P8O0pkysBhRfyjkKjJaYrvR1ExMO5eOXQ==
746-
dependencies:
747-
"@types/node" ">= 8"
748-
749707
"@octokit/types@^5.0.0", "@octokit/types@^5.0.1":
750708
version "5.0.1"
751709
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.0.1.tgz#5459e9a5e9df8565dcc62c17a34491904d71971e"
@@ -767,14 +725,13 @@
767725
dependencies:
768726
"@sinonjs/commons" "^1.7.0"
769727

770-
"@technote-space/github-action-test-helper@^0.4.0":
771-
version "0.4.0"
772-
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.4.0.tgz#ad52697904c1a540fdbbc1241b1a1b6b6489d04e"
773-
integrity sha512-xiaDI/f0fjM+n/lY8cYK7438bgc8fVpxieVghGDUiGX3WI9cRVaMc4S3oSGNvhx62vKPH4dVb2IVqjhsS1FjZg==
728+
"@technote-space/github-action-test-helper@^0.5.1":
729+
version "0.5.1"
730+
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.5.1.tgz#6a202994ef2543c681498f31d989994e4ec60f56"
731+
integrity sha512-u+EHHEUqiVSrR1bP9chCyJBvSZVat59nZeBnRPfNECVPzRlA9pbD77VmVTIFWy3qq4zQfZrveYrnLvKgpl5Syg==
774732
dependencies:
775-
"@actions/github" "^3.0.0"
733+
"@actions/github" "^4.0.0"
776734
"@octokit/plugin-rest-endpoint-methods" "^4.0.0"
777-
"@octokit/rest" "^18.0.0"
778735
js-yaml "^3.14.0"
779736

780737
"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7":

0 commit comments

Comments
 (0)