Skip to content

Commit

Permalink
Merge pull request #9 from sebastianbarry/fix-connecturl
Browse files Browse the repository at this point in the history
Only auto-generate opcode subgroups "default" and "test" if no subgroups are defined
  • Loading branch information
sebastianbarry committed Feb 12, 2024
2 parents 0a661ff + 669c214 commit eb4eeca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/actions/convertIssue/parse-issue-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,8 @@ export async function parseIssueBody(githubIssueTemplateFile, body) {
}; //TODO check options for call + add to form?

let subgroups = combinedObject.subgroups.split(",").map(item => item.trim());
if (!subgroups.includes("test")) {
subgroups.push("test");
}
if (!subgroups.includes("default")) {
subgroups.push("default");
if (subgroups.length == 1 && subgroups[0] == "") {
subgroups = ["default", "test"];
}
configObject["opcode"] = {
autogen: cleanBoolean(combinedObject.autogen),
Expand Down

0 comments on commit eb4eeca

Please sign in to comment.