mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-15 12:46:30 +00:00
๐ logging debug info
This commit is contained in:
parent
1a8e0448ba
commit
a59ab1c422
4 changed files with 7 additions and 1 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
|
@ -72,8 +72,10 @@ function findPreviousComment(octokit, repo, number, header) {
|
||||||
`, Object.assign(Object.assign({}, repo), { after, number }));
|
`, Object.assign(Object.assign({}, repo), { after, number }));
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const viewer = data.viewer;
|
const viewer = data.viewer;
|
||||||
|
core.debug(viewer.login);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const repository = data.repository;
|
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) => {
|
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;
|
var _a, _b;
|
||||||
return ((_a = node === null || node === void 0 ? void 0 : node.author) === null || _a === void 0 ? void 0 : _a.login) === viewer.login &&
|
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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
lib/comment.js
generated
2
lib/comment.js
generated
|
|
@ -65,8 +65,10 @@ function findPreviousComment(octokit, repo, number, header) {
|
||||||
`, Object.assign(Object.assign({}, repo), { after, number }));
|
`, Object.assign(Object.assign({}, repo), { after, number }));
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const viewer = data.viewer;
|
const viewer = data.viewer;
|
||||||
|
core.debug(viewer.login);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const repository = data.repository;
|
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) => {
|
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;
|
var _a, _b;
|
||||||
return ((_a = node === null || node === void 0 ? void 0 : node.author) === null || _a === void 0 ? void 0 : _a.login) === viewer.login &&
|
return ((_a = node === null || node === void 0 ? void 0 : node.author) === null || _a === void 0 ? void 0 : _a.login) === viewer.login &&
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,10 @@ export async function findPreviousComment(
|
||||||
)
|
)
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const viewer = data.viewer as User
|
const viewer = data.viewer as User
|
||||||
|
core.debug(viewer.login)
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const repository = data.repository as Repository
|
const repository = data.repository as Repository
|
||||||
|
core.debug(JSON.stringify(repository))
|
||||||
const target = repository.pullRequest?.comments?.nodes?.find(
|
const target = repository.pullRequest?.comments?.nodes?.find(
|
||||||
(node: IssueComment | null | undefined) =>
|
(node: IssueComment | null | undefined) =>
|
||||||
node?.author?.login === viewer.login &&
|
node?.author?.login === viewer.login &&
|
||||||
|
|
|
||||||
Loadingโฆ
Reference in a new issue