Skip to content

Commit e9773e8

Browse files
fix(issues): require a created GitHub issue to come back with a URL
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent fb10e05 commit e9773e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/source-control-github/src/server/gitHubIssueJson.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as Result from "effect/Result";
22
import * as Schema from "effect/Schema";
3+
import { TrimmedNonEmptyString } from "@t3tools/contracts";
34
import type {
45
IssueActor,
56
IssueComment,
@@ -330,7 +331,7 @@ export function toIssueTemplates(
330331
}
331332

332333
const decodeCreatedIssue = decodeJsonResult(
333-
Schema.Struct({ number: Schema.Int, html_url: Schema.String }),
334+
Schema.Struct({ number: Schema.Int, html_url: TrimmedNonEmptyString }),
334335
);
335336

336337
export function decodeCreatedIssueJson(raw: string) {

0 commit comments

Comments
 (0)