Skip to content

Commit 766ed8b

Browse files
authored
Prefer optional and formatted values in the "Create issue" form (#47)
1 parent 96d6fce commit 766ed8b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

functions/create_issue.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ export const CreateIssueDefinition = DefineFunction({
3838
"githubAccessTokenId",
3939
"url",
4040
"title",
41-
"description",
42-
"assignees",
4341
],
4442
},
4543
output_parameters: {

workflows/create_new_issue.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const issueFormData = CreateNewIssueWorkflow.addStep(
4545
title: "Repository URL",
4646
description: "The GitHub URL of the repository",
4747
type: Schema.types.string,
48+
format: "url",
4849
}, {
4950
name: "title",
5051
title: "Issue title",
@@ -61,7 +62,7 @@ const issueFormData = CreateNewIssueWorkflow.addStep(
6162
"GitHub username(s) of the user(s) to assign the issue to (separated by commas)",
6263
type: Schema.types.string,
6364
}],
64-
required: ["url", "title", "description", "assignees"],
65+
required: ["url", "title"],
6566
},
6667
},
6768
);

0 commit comments

Comments
 (0)