mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-19 22:44:38 +00:00
🚨 ignore eslint
This commit is contained in:
parent
8291eeaa52
commit
d381d4286f
4 changed files with 13 additions and 7 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
|
@ -70,7 +70,9 @@ 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;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const repository = data.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;
|
||||
|
|
|
|||
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
|
|
@ -63,7 +63,9 @@ 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;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const repository = data.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;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ export async function findPreviousComment(
|
|||
`,
|
||||
{...repo, after, number}
|
||||
)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const viewer = data.viewer as User
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||
const repository = data.repository as Repository
|
||||
const target = repository.pullRequest?.comments?.nodes?.find(
|
||||
(node: IssueComment | null | undefined) =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue