Skip to content

Commit cdf2e0c

Browse files
committed
Add support for a checkbox
1 parent 6a666ee commit cdf2e0c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

issue-to-json.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ async function parseIssueBody(githubFormData, body) {
5656
entry = await cleanupUrl(entry);
5757
}
5858

59+
// Only supports a single checkbox (for now)
60+
if(fields[j].type === "checkboxes") {
61+
entry = removeNewLines(entry);
62+
// Convert to Boolean
63+
entry = entry.startsWith("- [X]");
64+
}
65+
5966
returnObject[fields[j].id] = entry;
6067
}
6168

0 commit comments

Comments
 (0)