Skip to content

Commit 987bdeb

Browse files
committed
chore: add more logs & upgrade packages
1 parent c3f7b5b commit 987bdeb

File tree

3 files changed

+56
-19
lines changed

3 files changed

+56
-19
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"cors": "^2.8.5",
2424
"cross-fetch": "^3.1.5",
2525
"issue-parser": "^6.0.0",
26-
"octokit": "^2.0.7",
26+
"octokit": "^2.0.10",
2727
"probot": "^12.2.8"
2828
},
2929
"devDependencies": {
30-
"@types/cors": "^2.8.12",
30+
"@types/cors": "^2.8.13",
3131
"@types/issue-parser": "^3.0.1",
3232
"@types/jest": "^29.1.1",
3333
"@types/node": "^18.7.23",
@@ -38,7 +38,7 @@
3838
"prettier": "^2.7.1",
3939
"smee-client": "^1.2.3",
4040
"ts-jest": "^29.0.3",
41-
"typescript": "^4.8.4"
41+
"typescript": "^4.9.4"
4242
},
4343
"engines": {
4444
"node": ">= 16.14.2",

src/bot.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export default (app: Probot) => {
6060
},
6161
});
6262

63+
context.log.info(
64+
`Attempting to create new claims via /claims/gitpoap-bot/create for ${owner}/${repo}/pulls/${pullRequestNumber} with the following body: ${body}.`,
65+
);
66+
6367
const res = await fetch(`${process.env.API_URL}/claims/gitpoap-bot/create`, {
6468
method: 'POST',
6569
headers: {
@@ -179,6 +183,10 @@ export default (app: Probot) => {
179183
},
180184
);
181185

186+
context.log.info(
187+
`Attempting to create new claims via /claims/gitpoap-bot/create for ${owner}/${repo} with the following body: ${body}.`,
188+
);
189+
182190
const res = await fetch(`${process.env.API_URL}/claims/gitpoap-bot/create`, {
183191
method: 'POST',
184192
headers: {

yarn.lock

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,11 @@
759759
resolved "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.12.0.tgz"
760760
integrity sha512-1QYzZrwnn3rTQE7ZoSxXrO8lhu0aIbac1c+qIPOPEaVXBWSaUyLV1x9yt4uDQOwmu6u5ywVS8OJgs+ErDLf6vQ==
761761

762+
"@octokit/openapi-types@^14.0.0":
763+
version "14.0.0"
764+
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-14.0.0.tgz#949c5019028c93f189abbc2fb42f333290f7134a"
765+
integrity sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw==
766+
762767
"@octokit/plugin-enterprise-compatibility@^1.2.8":
763768
version "1.3.0"
764769
resolved "https://registry.npmjs.org/@octokit/plugin-enterprise-compatibility/-/plugin-enterprise-compatibility-1.3.0.tgz"
@@ -781,6 +786,13 @@
781786
dependencies:
782787
"@octokit/types" "^7.5.0"
783788

789+
"@octokit/plugin-paginate-rest@^5.0.0":
790+
version "5.0.1"
791+
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-5.0.1.tgz#93d7e74f1f69d68ba554fa6b888c2a9cf1f99a83"
792+
integrity sha512-7A+rEkS70pH36Z6JivSlR7Zqepz3KVucEFVDnSrgHXzG7WLAzYwcHZbKdfTXHwuTHbkT1vKvz7dHl1+HNf6Qyw==
793+
dependencies:
794+
"@octokit/types" "^8.0.0"
795+
784796
"@octokit/plugin-rest-endpoint-methods@^5.0.1":
785797
version "5.16.2"
786798
resolved "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz"
@@ -797,14 +809,22 @@
797809
"@octokit/types" "^7.5.0"
798810
deprecation "^2.3.1"
799811

800-
"@octokit/plugin-retry@^3.0.6", "@octokit/plugin-retry@^3.0.9":
812+
"@octokit/plugin-retry@^3.0.6":
801813
version "3.0.9"
802814
resolved "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-3.0.9.tgz"
803815
integrity sha512-r+fArdP5+TG6l1Rv/C9hVoty6tldw6cE2pRHNGmFPdyfrc696R6JjrQ3d7HdVqGwuzfyrcaLAKD7K8TX8aehUQ==
804816
dependencies:
805817
"@octokit/types" "^6.0.3"
806818
bottleneck "^2.15.3"
807819

820+
"@octokit/plugin-retry@^4.0.3":
821+
version "4.0.3"
822+
resolved "https://registry.yarnpkg.com/@octokit/plugin-retry/-/plugin-retry-4.0.3.tgz#75427ba1ad92afde07af9cb0c5197f214bb036e1"
823+
integrity sha512-tDR+4Cs9GPPNJ7/RjTEq5ty2wqjKe1hRUV7/hch+nORow5LshlHXTT1qfYNsFPw3S9szvFFAfDEFq/xwrEpL7g==
824+
dependencies:
825+
"@octokit/types" "^8.0.0"
826+
bottleneck "^2.15.3"
827+
808828
"@octokit/plugin-throttling@^3.3.4":
809829
version "3.7.0"
810830
resolved "https://registry.npmjs.org/@octokit/plugin-throttling/-/plugin-throttling-3.7.0.tgz"
@@ -877,6 +897,13 @@
877897
dependencies:
878898
"@octokit/openapi-types" "^13.11.0"
879899

900+
"@octokit/types@^8.0.0":
901+
version "8.0.0"
902+
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-8.0.0.tgz#93f0b865786c4153f0f6924da067fe0bb7426a9f"
903+
integrity sha512-65/TPpOJP1i3K4lBJMnWqPUJ6zuOtzhtagDvydAWbEXpbFYA0oMKKyLb95NFZZP0lSh/4b6K+DQlzvYQJQQePg==
904+
dependencies:
905+
"@octokit/openapi-types" "^14.0.0"
906+
880907
"@octokit/webhooks-methods@^2.0.0":
881908
version "2.0.0"
882909
resolved "https://registry.npmjs.org/@octokit/webhooks-methods/-/webhooks-methods-2.0.0.tgz"
@@ -1106,10 +1133,12 @@
11061133
dependencies:
11071134
"@types/node" "*"
11081135

1109-
"@types/cors@^2.8.12":
1110-
version "2.8.12"
1111-
resolved "https://registry.npmjs.org/@types/cors/-/cors-2.8.12.tgz"
1112-
integrity sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw==
1136+
"@types/cors@^2.8.13":
1137+
version "2.8.13"
1138+
resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.13.tgz#b8ade22ba455a1b8cb3b5d3f35910fd204f84f94"
1139+
integrity sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==
1140+
dependencies:
1141+
"@types/node" "*"
11131142

11141143
"@types/express-serve-static-core@^4.17.18":
11151144
version "4.17.31"
@@ -3466,19 +3495,19 @@ octokit-auth-probot@^1.2.2:
34663495
"@octokit/auth-unauthenticated" "^3.0.0"
34673496
"@octokit/types" "^6.1.1"
34683497

3469-
octokit@^2.0.7:
3470-
version "2.0.7"
3471-
resolved "https://registry.npmjs.org/octokit/-/octokit-2.0.7.tgz"
3472-
integrity sha512-Rf+pY3fCphmS4jjLqQ+D0xS1U+Ry/pAZHLJNvsQksuj4aopl7qFLlV4Id2KIlaUpKZrUCPzOkLiZOaoEb47RZQ==
3498+
octokit@^2.0.10:
3499+
version "2.0.10"
3500+
resolved "https://registry.yarnpkg.com/octokit/-/octokit-2.0.10.tgz#e3b991b34fba733ced82b4ddb2444aeeb7da0d2a"
3501+
integrity sha512-sI15RZVaV9iyqLLEky4i++tMM48Fo9a80zrpOXMdAtbomznBLDi/moi9mAjJg7Ii+EaSEyaWOVIh3M/Vk/a5mw==
34733502
dependencies:
34743503
"@octokit/app" "^13.0.5"
34753504
"@octokit/core" "^4.0.4"
34763505
"@octokit/oauth-app" "^4.0.6"
3477-
"@octokit/plugin-paginate-rest" "^4.0.0"
3506+
"@octokit/plugin-paginate-rest" "^5.0.0"
34783507
"@octokit/plugin-rest-endpoint-methods" "^6.0.0"
3479-
"@octokit/plugin-retry" "^3.0.9"
3508+
"@octokit/plugin-retry" "^4.0.3"
34803509
"@octokit/plugin-throttling" "^4.0.1"
3481-
"@octokit/types" "^7.0.0"
3510+
"@octokit/types" "^8.0.0"
34823511

34833512
on-finished@2.4.1:
34843513
version "2.4.1"
@@ -4393,10 +4422,10 @@ type-is@~1.6.18:
43934422
media-typer "0.3.0"
43944423
mime-types "~2.1.24"
43954424

4396-
typescript@^4.8.4:
4397-
version "4.8.4"
4398-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
4399-
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
4425+
typescript@^4.9.4:
4426+
version "4.9.4"
4427+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
4428+
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==
44004429

44014430
uglify-js@^3.1.4:
44024431
version "3.17.1"

0 commit comments

Comments
 (0)