Skip to content

Commit 3fb676f

Browse files
committed
Use existing RepositoryNwo type
1 parent afaf324 commit 3fb676f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎pr-checks/post-comment.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The `.github/actions/post-comment` action requires callers to supply this value
1717
import assert from "node:assert/strict";
1818
import { parseArgs } from "node:util";
1919

20+
import { RepositoryNwo } from "../src/repository";
21+
2022
import { type ApiClient, getApiClient, resolveToken } from "./api-client";
2123

2224
/** Represents the command-line options. */
@@ -28,7 +30,7 @@ export interface Options {
2830
/** The issue/pull request number to post/update the comment on. */
2931
issueId: number;
3032
/** The repository to operate on. */
31-
repository: { owner: string; repo: string };
33+
repository: RepositoryNwo;
3234
}
3335

3436
/** Parses CLI arguments supplied by the composite action into `Options`. */
@@ -60,7 +62,7 @@ export function parseOptions(argv?: string[]): Options {
6062
*/
6163
export async function findExistingComment(
6264
client: ApiClient,
63-
repository: { owner: string; repo: string },
65+
repository: RepositoryNwo,
6466
issueNumber: number,
6567
marker: string,
6668
): Promise<number | undefined> {

0 commit comments

Comments
 (0)