Skip to content

Commit

Permalink
chore: fixing knip
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Oct 7, 2024
1 parent e67b1d0 commit 4e899cb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@
"@types/jsdom": "21.1.6",
"@types/markdown-it": "13.0.7",
"@types/node": "20.11.28",
"@typescript-eslint/eslint-plugin": "8.8.0",
"@typescript-eslint/parser": "8.8.0",
"@vercel/ncc": "0.38.2",
"babel-jest": "29.7.0",
"cspell": "8.3.2",
"eslint": "9.12.0",
Expand Down
1 change: 0 additions & 1 deletion src/github-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export type GitHubIssueComment = RestEndpointMethodTypes["issues"]["listComments
export type GitHubIssueEvent = RestEndpointMethodTypes["issues"]["listEvents"]["response"]["data"][0];
export type GitHubTimelineEvent = RestEndpointMethodTypes["issues"]["listEventsForTimeline"]["response"]["data"][0];
export type GitHubRepository = RestEndpointMethodTypes["repos"]["get"]["response"]["data"];
export type GitHubUser = RestEndpointMethodTypes["users"]["getByUsername"]["response"]["data"];
export type GitHubPullRequestReviewState = RestEndpointMethodTypes["pulls"]["listReviews"]["response"]["data"][0];
export type GitHubPullRequestReviewComment =
RestEndpointMethodTypes["pulls"]["listReviewComments"]["response"]["data"][0];
7 changes: 0 additions & 7 deletions src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
GitHubPullRequestReviewComment,
GitHubPullRequestReviewState,
GitHubRepository,
GitHubTimelineEvent,
} from "./github-types";
import { getMinimizedCommentStatus } from "./helpers/get-comment-details";

Expand Down Expand Up @@ -95,12 +94,6 @@ export async function getPullRequestReviewComments(pullParams: PullParams): Prom
return await octokit.paginate(octokit.pulls.listReviewComments.endpoint.merge(pullParams));
}

export async function getAllTimelineEvents(issueParams: IssueParams): Promise<GitHubTimelineEvent[]> {
const octokit = getOctokitInstance();
const options = octokit.issues.listEventsForTimeline.endpoint.merge(issueParams);
return await octokit.paginate(options);
}

export function parseGitHubUrl(url: string): { owner: string; repo: string; issue_number: number } {
const path = new URL(url).pathname.split("/");
if (path.length !== 5) {
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3720,11 +3720,6 @@
ethers "^5.7.0"
tiny-invariant "^1.1.0"

"@vercel/ncc@0.38.2":
version "0.38.2"
resolved "https://registry.yarnpkg.com/@vercel/ncc/-/ncc-0.38.2.tgz#d35c3a74c671699ccf316f74bf0ecab6b60e312b"
integrity sha512-3yel3jaxUg9pHBv4+KeC9qlbdZPug+UMtUOlhvpDYCMSgcNSrS2Hv1LoqMsOV7hf2lYscx+BESfJOIla1WsmMQ==

"@zkochan/retry@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@zkochan/retry/-/retry-0.2.0.tgz#cb52c9fce1976f3eed7b1979b739e70706f4a3d2"
Expand Down

0 comments on commit 4e899cb

Please sign in to comment.