Skip to content

release: v3.0.2 #284

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

Merged
merged 4 commits into from
Jun 27, 2020
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/github-action-helper",
"version": "3.0.1",
"version": "3.0.2",
"description": "Helper to filter GitHub Action.",
"author": {
"name": "Technote",
Expand All @@ -27,15 +27,15 @@
],
"dependencies": {
"@actions/core": "^1.2.4",
"@actions/github": "^3.0.0",
"@actions/github": "^4.0.0",
"@octokit/plugin-rest-endpoint-methods": "^4.0.0",
"shell-escape": "^0.2.0",
"sprintf-js": "^1.1.2"
},
"devDependencies": {
"@commitlint/cli": "^9.0.1",
"@commitlint/config-conventional": "^9.0.1",
"@technote-space/github-action-test-helper": "^0.4.0",
"@technote-space/github-action-test-helper": "^0.5.1",
"@types/jest": "^26.0.3",
"@types/node": "^14.0.14",
"@typescript-eslint/eslint-plugin": "^3.4.0",
Expand All @@ -58,6 +58,6 @@
"lint": "eslint 'src/**/*.ts' '__tests__/**/*.ts' --cache",
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
"cover": "jest --coverage",
"update": "ncu -u && yarn install && yarn upgrade && yarn audit"
"update": "npx ncu -u && yarn install && yarn upgrade && yarn audit"
}
}
10 changes: 6 additions & 4 deletions src/api-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,13 @@ export default class ApiHelper {
* @return {AsyncIterable<PullsListResponseData>} pull request list
*/
public pullsList = (params: PullsListParams): Promise<PullsListResponseData> => (this.octokit.paginate as PaginateInterface)(
(this.octokit as RestEndpointMethods).pulls.list.endpoint.merge(Object.assign({
(this.octokit as RestEndpointMethods).pulls.list,
Object.assign({
sort: 'created',
direction: 'asc',
}, params, {
...this.context.repo,
})),
}),
);

/**
Expand Down Expand Up @@ -546,10 +547,11 @@ export default class ApiHelper {
* @return {Promise<Array<string>>} tags
*/
public getTags = async(): Promise<Array<string>> => (await (this.octokit.paginate as PaginateInterface)(
(this.octokit as RestEndpointMethods).git.listMatchingRefs.endpoint.merge({
(this.octokit as RestEndpointMethods).git.listMatchingRefs,
{
...this.context.repo,
ref: 'tags/',
}),
},
)).map((item): string => trimRef((item as GitListMatchingRefsResponseData[number]).ref));

/**
Expand Down
75 changes: 16 additions & 59 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.4.tgz#96179dbf9f8d951dd74b40a0dbd5c22555d186ab"
integrity sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==

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

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

"@octokit/core@^2.5.1":
version "2.5.4"
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-2.5.4.tgz#f7fbf8e4f86c5cc2497a8887ba2561ec8d358054"
integrity sha512-HCp8yKQfTITYK+Nd09MHzAlP1v3Ii/oCohv0/TW9rhSLvzb98BOVs2QmVYuloE6a3l6LsfyGIwb6Pc4ycgWlIQ==
dependencies:
"@octokit/auth-token" "^2.4.0"
"@octokit/graphql" "^4.3.1"
"@octokit/request" "^5.4.0"
"@octokit/types" "^5.0.0"
before-after-hook "^2.1.0"
universal-user-agent "^5.0.0"

"@octokit/core@^3.0.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.1.0.tgz#9c3c9b23f7504668cfa057f143ccbf0c645a0ac9"
Expand Down Expand Up @@ -678,34 +666,21 @@
"@octokit/types" "^5.0.0"
universal-user-agent "^5.0.0"

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

"@octokit/plugin-request-log@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz#eef87a431300f6148c39a7f75f8cfeb218b2547e"
integrity sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw==

"@octokit/[email protected]", "@octokit/plugin-rest-endpoint-methods@^4.0.0":
"@octokit/plugin-rest-endpoint-methods@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.0.0.tgz#b02a2006dda8e908c3f8ab381dd5475ef5a810a8"
integrity sha512-emS6gysz4E9BNi9IrCl7Pm4kR+Az3MmVB0/DoDCmF4U48NbYG3weKyDlgkrz6Jbl4Mu4nDx8YWZwC4HjoTdcCA==
dependencies:
"@octokit/types" "^5.0.0"
deprecation "^2.3.1"

"@octokit/plugin-rest-endpoint-methods@^3.10.0":
version "3.17.0"
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.17.0.tgz#d8ba04eb883849dd98666c55bf49d8c9fe7be055"
integrity sha512-NFV3vq7GgoO2TrkyBRUOwflkfTYkFKS0tLAPym7RNpkwLCttqShaEGjthOsPEEL+7LFcYv3mU24+F2yVd3npmg==
dependencies:
"@octokit/types" "^4.1.6"
deprecation "^2.3.1"

"@octokit/request-error@^2.0.0":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0"
Expand All @@ -729,23 +704,6 @@
once "^1.4.0"
universal-user-agent "^5.0.0"

"@octokit/rest@^18.0.0":
version "18.0.0"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.0.0.tgz#7f401d9ce13530ad743dfd519ae62ce49bcc0358"
integrity sha512-4G/a42lry9NFGuuECnua1R1eoKkdBYJap97jYbWDNYBOUboWcM75GJ1VIcfvwDV/pW0lMPs7CEmhHoVrSV5shg==
dependencies:
"@octokit/core" "^3.0.0"
"@octokit/plugin-paginate-rest" "^2.2.0"
"@octokit/plugin-request-log" "^1.0.0"
"@octokit/plugin-rest-endpoint-methods" "4.0.0"

"@octokit/types@^4.1.6":
version "4.1.10"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-4.1.10.tgz#e4029c11e2cc1335051775bc1600e7e740e4aca4"
integrity sha512-/wbFy1cUIE5eICcg0wTKGXMlKSbaAxEr00qaBXzscLXpqhcwgXeS6P8O0pkysBhRfyjkKjJaYrvR1ExMO5eOXQ==
dependencies:
"@types/node" ">= 8"

"@octokit/types@^5.0.0", "@octokit/types@^5.0.1":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-5.0.1.tgz#5459e9a5e9df8565dcc62c17a34491904d71971e"
Expand All @@ -767,14 +725,13 @@
dependencies:
"@sinonjs/commons" "^1.7.0"

"@technote-space/github-action-test-helper@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.4.0.tgz#ad52697904c1a540fdbbc1241b1a1b6b6489d04e"
integrity sha512-xiaDI/f0fjM+n/lY8cYK7438bgc8fVpxieVghGDUiGX3WI9cRVaMc4S3oSGNvhx62vKPH4dVb2IVqjhsS1FjZg==
"@technote-space/github-action-test-helper@^0.5.1":
version "0.5.1"
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.5.1.tgz#6a202994ef2543c681498f31d989994e4ec60f56"
integrity sha512-u+EHHEUqiVSrR1bP9chCyJBvSZVat59nZeBnRPfNECVPzRlA9pbD77VmVTIFWy3qq4zQfZrveYrnLvKgpl5Syg==
dependencies:
"@actions/github" "^3.0.0"
"@actions/github" "^4.0.0"
"@octokit/plugin-rest-endpoint-methods" "^4.0.0"
"@octokit/rest" "^18.0.0"
js-yaml "^3.14.0"

"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7":
Expand Down