๐Ÿ”Š logging debug info

This commit is contained in:
marocchino 2021-10-21 01:01:10 +09:00
parent 1a8e0448ba
commit a59ab1c422
No known key found for this signature in database
GPG key ID: DEFF05E6B5B0FF97
4 changed files with 7 additions and 1 deletions

2
dist/index.js generated vendored
View file

@ -72,8 +72,10 @@ function findPreviousComment(octokit, repo, number, header) {
`, Object.assign(Object.assign({}, repo), { after, number }));
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const viewer = data.viewer;
core.debug(viewer.login);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const repository = data.repository;
core.debug(JSON.stringify(repository));
const target = (_c = (_b = (_a = repository.pullRequest) === null || _a === void 0 ? void 0 : _a.comments) === null || _b === void 0 ? void 0 : _b.nodes) === null || _c === void 0 ? void 0 : _c.find((node) => {
var _a, _b;
return ((_a = node === null || node === void 0 ? void 0 : node.author) === null || _a === void 0 ? void 0 : _a.login) === viewer.login &&

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

2
lib/comment.js generated
View file

@ -65,8 +65,10 @@ function findPreviousComment(octokit, repo, number, header) {
`, Object.assign(Object.assign({}, repo), { after, number }));
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const viewer = data.viewer;
core.debug(viewer.login);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const repository = data.repository;
core.debug(JSON.stringify(repository));
const target = (_c = (_b = (_a = repository.pullRequest) === null || _a === void 0 ? void 0 : _a.comments) === null || _b === void 0 ? void 0 : _b.nodes) === null || _c === void 0 ? void 0 : _c.find((node) => {
var _a, _b;
return ((_a = node === null || node === void 0 ? void 0 : node.author) === null || _a === void 0 ? void 0 : _a.login) === viewer.login &&

View file

@ -47,8 +47,10 @@ export async function findPreviousComment(
)
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const viewer = data.viewer as User
core.debug(viewer.login)
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const repository = data.repository as Repository
core.debug(JSON.stringify(repository))
const target = repository.pullRequest?.comments?.nodes?.find(
(node: IssueComment | null | undefined) =>
node?.author?.login === viewer.login &&