Skip to content

Commit

Permalink
works in all repos
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Feb 7, 2024
1 parent b9ae8df commit 574073d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/command-configs/help/parts/commands_preset.pug
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
div(class="preset " + (typeof(preset.repos) !== 'undefined' ? preset.repos : []).join(' '))
h6.mb-md(id="link-"+ commandName + "-" + presetId) #{commandStart} #{ commandName } #{presetId === 'default' ? '' : presetId}
p.mb-md.muted
| Works in these repos: 
each repo in (typeof(preset.repos) !== 'undefined' ? preset.repos : [])
span.ms-label #{repo}
if typeof(preset.repos) !== 'undefined'
| Works in these repos: 
each repo in (typeof(preset.repos) !== 'undefined' ? preset.repos : [])
span.ms-label #{repo}
else
| Works in all repos
-let defaultArgs = []
if preset.args && Object.values(preset.args).length > 0
div.preset-args.mb-lg.ml-md
Expand Down
1 change: 0 additions & 1 deletion src/command-configs/renderHelpPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function prepareConfigs(cmdConfigs: CommandConfigs): CommandConfigs {
newCmdConfigs.clean = mockStaticConfig("Clears bot comments in the PR.", {
default: {
description: "Clears all bot comments in the PR. ",
repos: ["polkadot-sdk"],
args: {
all: {
label: "all",
Expand Down

0 comments on commit 574073d

Please sign in to comment.