Skip to content

Commit c85a868

Browse files
authored
feat: Upgrade @actions/github (#154)
1 parent e642fa0 commit c85a868

File tree

3 files changed

+109
-18
lines changed

3 files changed

+109
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"homepage": "https://github.com/amannn/action-semantic-pull-request#readme",
2525
"dependencies": {
2626
"@actions/core": "^1.2.6",
27-
"@actions/github": "^4.0.0",
27+
"@actions/github": "^5.0.0",
2828
"conventional-changelog-conventionalcommits": "4.5.0",
2929
"conventional-commit-types": "^3.0.0",
3030
"conventional-commits-parser": "^3.2.0"

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = async function run() {
3434
// the user updates the title and re-runs the workflow, it would
3535
// be outdated. Therefore fetch the pull request via the REST API
3636
// to ensure we use the current title.
37-
const {data: pullRequest} = await client.pulls.get({
37+
const {data: pullRequest} = await client.rest.pulls.get({
3838
owner,
3939
repo,
4040
pull_number: contextPullRequest.number
@@ -59,7 +59,7 @@ module.exports = async function run() {
5959
let nonMergeCommits = [];
6060

6161
for await (const response of client.paginate.iterator(
62-
client.pulls.listCommits,
62+
client.rest.pulls.listCommits,
6363
{
6464
owner,
6565
repo,

yarn.lock

Lines changed: 106 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09"
88
integrity sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==
99

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==
10+
"@actions/github@^5.0.0":
11+
version "5.0.0"
12+
resolved "https://registry.yarnpkg.com/@actions/github/-/github-5.0.0.tgz#1754127976c50bd88b2e905f10d204d76d1472f8"
13+
integrity sha512-QvE9eAAfEsS+yOOk0cylLBIO/d6WyWIOvsxxzdrPFaud39G6BOkUwScXZn1iBzQzHyu9SBkkLSWlohDWdsasAQ==
1414
dependencies:
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"
15+
"@actions/http-client" "^1.0.11"
16+
"@octokit/core" "^3.4.0"
17+
"@octokit/plugin-paginate-rest" "^2.13.3"
18+
"@octokit/plugin-rest-endpoint-methods" "^5.1.1"
1919

20-
"@actions/http-client@^1.0.8":
21-
version "1.0.9"
22-
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.9.tgz#af1947d020043dbc6a3b4c5918892095c30ffb52"
23-
integrity sha512-0O4SsJ7q+MK0ycvXPl2e6bMXV7dxAXOGjrXS1eTF9s2S401Tp6c/P3c3Joz04QefC1J6Gt942Wl2jbm3f4mLcg==
20+
"@actions/http-client@^1.0.11":
21+
version "1.0.11"
22+
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0"
23+
integrity sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==
2424
dependencies:
2525
tunnel "0.0.6"
2626

@@ -491,7 +491,7 @@
491491
before-after-hook "^2.1.0"
492492
universal-user-agent "^5.0.0"
493493

494-
"@octokit/core@^3.0.0", "@octokit/core@^3.2.3":
494+
"@octokit/core@^3.2.3":
495495
version "3.2.3"
496496
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.2.3.tgz#7fc41fe4f7992109dbd06fd39b3df4e928713850"
497497
integrity sha512-0ANaYovDuwXW1ZHk9jBUDcZWHqdMlhDV8Z0oHVRk4Sq0QCmQOprvnIjIQSGkXgKlhdTpPo0wwvvMnhqiXeR7DA==
@@ -503,6 +503,19 @@
503503
before-after-hook "^2.1.0"
504504
universal-user-agent "^6.0.0"
505505

506+
"@octokit/core@^3.4.0":
507+
version "3.5.1"
508+
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.5.1.tgz#8601ceeb1ec0e1b1b8217b960a413ed8e947809b"
509+
integrity sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==
510+
dependencies:
511+
"@octokit/auth-token" "^2.4.4"
512+
"@octokit/graphql" "^4.5.8"
513+
"@octokit/request" "^5.6.0"
514+
"@octokit/request-error" "^2.0.5"
515+
"@octokit/types" "^6.0.3"
516+
before-after-hook "^2.2.0"
517+
universal-user-agent "^6.0.0"
518+
506519
"@octokit/endpoint@^6.0.1":
507520
version "6.0.5"
508521
resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.5.tgz#43a6adee813c5ffd2f719e20cfd14a1fee7c193a"
@@ -535,14 +548,26 @@
535548
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-1.2.2.tgz#55d927436c07ef148ec927fbf4d55580a19bd68e"
536549
integrity sha512-vrKDLd/Rq4IE16oT+jJkDBx0r29NFkdkU8GwqVSP4RajsAvP23CMGtFhVK0pedUhAiMvG1bGnFcTC/xCKaKgmw==
537550

551+
"@octokit/openapi-types@^11.2.0":
552+
version "11.2.0"
553+
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-11.2.0.tgz#b38d7fc3736d52a1e96b230c1ccd4a58a2f400a6"
554+
integrity sha512-PBsVO+15KSlGmiI8QAzaqvsNlZlrDlyAJYcrXBCvVUxCp7VnXjkwPoFHgjEJXx3WF9BAwkA6nfCUA7i9sODzKA==
555+
556+
"@octokit/plugin-paginate-rest@^2.13.3":
557+
version "2.17.0"
558+
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.17.0.tgz#32e9c7cab2a374421d3d0de239102287d791bce7"
559+
integrity sha512-tzMbrbnam2Mt4AhuyCHvpRkS0oZ5MvwwcQPYGtMv4tUa5kkzG58SVB0fcsLulOZQeRnOgdkZWkRUiyBlh0Bkyw==
560+
dependencies:
561+
"@octokit/types" "^6.34.0"
562+
538563
"@octokit/plugin-paginate-rest@^2.2.0":
539564
version "2.4.0"
540565
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.4.0.tgz#92f951ddc8a1cd505353fa07650752ca25ed7e93"
541566
integrity sha512-YT6Klz3LLH6/nNgi0pheJnUmTFW4kVnxGft+v8Itc41IIcjl7y1C8TatmKQBbCSuTSNFXO5pCENnqg6sjwpJhg==
542567
dependencies:
543568
"@octokit/types" "^5.5.0"
544569

545-
"@octokit/plugin-paginate-rest@^2.2.3", "@octokit/plugin-paginate-rest@^2.6.2":
570+
"@octokit/plugin-paginate-rest@^2.6.2":
546571
version "2.6.2"
547572
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.6.2.tgz#45d13dbf5ff8aed54f1a3716b1d57fdc62720c5f"
548573
integrity sha512-3Dy7/YZAwdOaRpGQoNHPeT0VU1fYLpIUdPyvR37IyFLgd6XSij4j9V/xN/+eSjF2KKvmfIulEh9LF1tRPjIiDA==
@@ -567,14 +592,22 @@
567592
"@octokit/types" "^4.1.6"
568593
deprecation "^2.3.1"
569594

570-
"@octokit/[email protected]", "@octokit/plugin-rest-endpoint-methods@^4.0.0":
595+
"@octokit/[email protected]":
571596
version "4.3.1"
572597
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.3.1.tgz#2447983f5d7fab44ce147e4ba0515838a05fb038"
573598
integrity sha512-gKnD7zjja2Ne2YJniQhcmVFnJ4vkIVjBeMDQaV4fVJkLniZUmm8WZ2GRF7HkueI4kT0B6sfDK02TYwskRMG3dQ==
574599
dependencies:
575600
"@octokit/types" "^6.0.3"
576601
deprecation "^2.3.1"
577602

603+
"@octokit/plugin-rest-endpoint-methods@^5.1.1":
604+
version "5.13.0"
605+
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.13.0.tgz#8c46109021a3412233f6f50d28786f8e552427ba"
606+
integrity sha512-uJjMTkN1KaOIgNtUPMtIXDOjx6dGYysdIFhgA52x4xSadQCz3b/zJexvITDVpANnfKPW/+E0xkOvLntqMYpviA==
607+
dependencies:
608+
"@octokit/types" "^6.34.0"
609+
deprecation "^2.3.1"
610+
578611
"@octokit/request-error@^2.0.0":
579612
version "2.0.2"
580613
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0"
@@ -584,6 +617,15 @@
584617
deprecation "^2.0.0"
585618
once "^1.4.0"
586619

620+
"@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0":
621+
version "2.1.0"
622+
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677"
623+
integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==
624+
dependencies:
625+
"@octokit/types" "^6.0.3"
626+
deprecation "^2.0.0"
627+
once "^1.4.0"
628+
587629
"@octokit/request@^5.3.0", "@octokit/request@^5.4.0":
588630
version "5.4.9"
589631
resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.9.tgz#0a46f11b82351b3416d3157261ad9b1558c43365"
@@ -612,6 +654,18 @@
612654
once "^1.4.0"
613655
universal-user-agent "^6.0.0"
614656

657+
"@octokit/request@^5.6.0":
658+
version "5.6.3"
659+
resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0"
660+
integrity sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==
661+
dependencies:
662+
"@octokit/endpoint" "^6.0.1"
663+
"@octokit/request-error" "^2.1.0"
664+
"@octokit/types" "^6.16.1"
665+
is-plain-object "^5.0.0"
666+
node-fetch "^2.6.7"
667+
universal-user-agent "^6.0.0"
668+
615669
"@octokit/rest@^17.0.0":
616670
version "17.11.2"
617671
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-17.11.2.tgz#f3dbd46f9f06361c646230fd0ef8598e59183ead"
@@ -661,6 +715,13 @@
661715
"@octokit/openapi-types" "^1.2.0"
662716
"@types/node" ">= 8"
663717

718+
"@octokit/types@^6.16.1", "@octokit/types@^6.34.0":
719+
version "6.34.0"
720+
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.34.0.tgz#c6021333334d1ecfb5d370a8798162ddf1ae8218"
721+
integrity sha512-s1zLBjWhdEI2zwaoSgyOFoKSl109CUcVBCc7biPJ3aAf6LGLU6szDvi31JPU7bxfla2lqfhjbbg/5DdFNxOwHw==
722+
dependencies:
723+
"@octokit/openapi-types" "^11.2.0"
724+
664725
"@rushstack/[email protected]":
665726
version "1.0.2"
666727
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.0.2.tgz#a8d0048fed2885802351144bfc651f06b5178521"
@@ -1417,6 +1478,11 @@ before-after-hook@^2.1.0:
14171478
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.0.tgz#b6c03487f44e24200dd30ca5e6a1979c5d2fb635"
14181479
integrity sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A==
14191480

1481+
before-after-hook@^2.2.0:
1482+
version "2.2.2"
1483+
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.2.tgz#a6e8ca41028d90ee2c24222f201c90956091613e"
1484+
integrity sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==
1485+
14201486
bin-links@^1.1.2, bin-links@^1.1.8:
14211487
version "1.1.8"
14221488
resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-1.1.8.tgz#bd39aadab5dc4bdac222a07df5baf1af745b2228"
@@ -5221,6 +5287,13 @@ node-fetch@^2.6.1:
52215287
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
52225288
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
52235289

5290+
node-fetch@^2.6.7:
5291+
version "2.6.7"
5292+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
5293+
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
5294+
dependencies:
5295+
whatwg-url "^5.0.0"
5296+
52245297
node-gyp@^5.0.2, node-gyp@^5.1.0:
52255298
version "5.1.1"
52265299
resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-5.1.1.tgz#eb915f7b631c937d282e33aed44cb7a025f62a3e"
@@ -7448,6 +7521,11 @@ tr46@^1.0.1:
74487521
dependencies:
74497522
punycode "^2.1.0"
74507523

7524+
tr46@~0.0.3:
7525+
version "0.0.3"
7526+
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
7527+
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
7528+
74517529
traverse@~0.6.6:
74527530
version "0.6.6"
74537531
resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137"
@@ -7771,6 +7849,11 @@ wcwidth@^1.0.0:
77717849
dependencies:
77727850
defaults "^1.0.3"
77737851

7852+
webidl-conversions@^3.0.0:
7853+
version "3.0.1"
7854+
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
7855+
integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=
7856+
77747857
webidl-conversions@^4.0.2:
77757858
version "4.0.2"
77767859
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
@@ -7788,6 +7871,14 @@ whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0:
77887871
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf"
77897872
integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==
77907873

7874+
whatwg-url@^5.0.0:
7875+
version "5.0.0"
7876+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
7877+
integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0=
7878+
dependencies:
7879+
tr46 "~0.0.3"
7880+
webidl-conversions "^3.0.0"
7881+
77917882
whatwg-url@^6.4.1:
77927883
version "6.5.0"
77937884
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8"

0 commit comments

Comments
 (0)