From f33ad7ec9e4b3efe716c11559a80d398a81c0318 Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Mon, 30 Oct 2023 15:32:05 -0700 Subject: [PATCH 1/2] use the url format for the repo url --- workflows/create_new_issue.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/workflows/create_new_issue.ts b/workflows/create_new_issue.ts index 83afe6e..f4f408f 100644 --- a/workflows/create_new_issue.ts +++ b/workflows/create_new_issue.ts @@ -45,6 +45,7 @@ const issueFormData = CreateNewIssueWorkflow.addStep( title: "Repository URL", description: "The GitHub URL of the repository", type: Schema.types.string, + format: "url", }, { name: "title", title: "Issue title", From a35931e550ea4d9886b7a047c4bbe398506124d4 Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Mon, 30 Oct 2023 15:32:50 -0700 Subject: [PATCH 2/2] do not require optional inputs --- functions/create_issue.ts | 2 -- workflows/create_new_issue.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/functions/create_issue.ts b/functions/create_issue.ts index 8e92035..4c8c289 100644 --- a/functions/create_issue.ts +++ b/functions/create_issue.ts @@ -38,8 +38,6 @@ export const CreateIssueDefinition = DefineFunction({ "githubAccessTokenId", "url", "title", - "description", - "assignees", ], }, output_parameters: { diff --git a/workflows/create_new_issue.ts b/workflows/create_new_issue.ts index f4f408f..7c44e9c 100644 --- a/workflows/create_new_issue.ts +++ b/workflows/create_new_issue.ts @@ -62,7 +62,7 @@ const issueFormData = CreateNewIssueWorkflow.addStep( "GitHub username(s) of the user(s) to assign the issue to (separated by commas)", type: Schema.types.string, }], - required: ["url", "title", "description", "assignees"], + required: ["url", "title"], }, }, );