From 3fb676f638e291635d5b0104f2f02bdfd9ff8b56 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Thu, 29 Oct 2026 09:56:18 -0500 Subject: [PATCH] Use existing `RepositoryNwo` type --- pr-checks/post-comment.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pr-checks/post-comment.ts b/pr-checks/post-comment.ts index 81c42f25a..8c9703357 100644 --- a/pr-checks/post-comment.ts +++ b/pr-checks/post-comment.ts @@ -17,6 +17,8 @@ The `.github/actions/post-comment` action requires callers to supply this value import assert from "node:assert/strict"; import { parseArgs } from "node:util"; +import { RepositoryNwo } from "../src/repository"; + import { type ApiClient, getApiClient, resolveToken } from "./api-client"; /** Represents the command-line options. */ @@ -28,7 +30,7 @@ export interface Options { /** The issue/pull request number to post/update the comment on. */ issueId: number; /** The repository to operate on. */ - repository: { owner: string; repo: string }; + repository: RepositoryNwo; } /** Parses CLI arguments supplied by the composite action into `Options`. */ @@ -60,7 +62,7 @@ export function parseOptions(argv?: string[]): Options { */ export async function findExistingComment( client: ApiClient, - repository: { owner: string; repo: string }, + repository: RepositoryNwo, issueNumber: number, marker: string, ): Promise {