Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knip ci org fix qa #3

Open
wants to merge 1 commit into
base: refactor/general
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/helpers/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
}
}

export function unusedFunction(context: Context) {
const payload = context.payload;

Check failure on line 48 in src/helpers/issue.ts

View workflow job for this annotation

GitHub Actions / build

'payload' is declared but its value is never read.
}

export async function addLabelToIssue(context: Context, labelName: string) {
const payload = context.payload;
if (!payload.issue) {
Expand Down Expand Up @@ -104,7 +108,7 @@
per_page: 100,
})) as Issue[];
return issues;
} catch (err: unknown) {

Check failure on line 111 in src/helpers/issue.ts

View workflow job for this annotation

GitHub Actions / knip-reporter-annotations-check

src/helpers/issue.ts#L111

'upsertLastCommentToIssue' is an unused export
context.logger.error("Listing all issues and pulls failed!", err);
return [];
}
Expand All @@ -115,7 +119,7 @@
if (message instanceof LogReturn) {
comment = message.logMessage.diff;
console.trace(
"one of the places that metadata is being serialized as an html comment. this one is unexpected and serves as a fallback"

Check failure on line 122 in src/helpers/issue.ts

View workflow job for this annotation

GitHub Actions / knip-reporter-annotations-check

src/helpers/issue.ts#L122

'getIssueDescription' is an unused export
);
const metadataSerialized = JSON.stringify(message.metadata);
const metadataSerializedAsComment = `<!-- ${metadataSerialized} -->`;
Expand Down Expand Up @@ -170,7 +174,7 @@
} else if (format === "text") {
result = response.data.body_text;
}

Check failure on line 177 in src/helpers/issue.ts

View workflow job for this annotation

GitHub Actions / knip-reporter-annotations-check

src/helpers/issue.ts#L177

'getAllIssueAssignEvents' is an unused export
return result as string;
} catch (e: unknown) {
throw context.logger.error("Fetching issue description failed!", e);
Expand Down Expand Up @@ -382,7 +386,7 @@
page: number
) {
const payload = context.payload;

Check failure on line 389 in src/helpers/issue.ts

View workflow job for this annotation

GitHub Actions / knip-reporter-annotations-check

src/helpers/issue.ts#L389

'getReviewRequests' is an unused export
try {
const { data: pulls } = await context.octokit.rest.pulls.list({
owner: payload.repository.owner.login,
Expand Down Expand Up @@ -451,7 +455,7 @@
pull_number: pullNumber,
per_page: perPage,
page,
mediaType: {

Check failure on line 458 in src/helpers/issue.ts

View workflow job for this annotation

GitHub Actions / knip-reporter-annotations-check

src/helpers/issue.ts#L458

'getOpenedPullRequestsForAnIssue' is an unused export
format,
},
});
Expand Down
Loading