Skip to content

Commit

Permalink
Cosmetic change of the help page (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp authored Jul 19, 2023
1 parent f291cad commit cc738ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions src/command-configs/help/parts/hero.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ div.ms-hero.mb-lg
h1.ms-hero-title Command Bot - Help Docs
div.ms-hero-content
p
| Based on
| Based on 
a(href=repoLink) #{repoLink}
p rev: #{scriptsRevision}
p running custom commands, like:
p Running custom commands, like:
br
code #{commandStart} command-name -v VAR=value id --argument=1 --argument=2
br
br
| Or even multiple commands in one comment:
br
code #{commandStart} clean
br
code #{commandStart} command-name --argument=2
br
code #{commandStart} command-name --argument=3
p To add new command:  
ul
li go to
p To add a new command:  
ol
li Go to 
a(href=config.pipelineScripts.repository) #{config.pipelineScripts.repository}
li add new command and open PR
li read  
a(href="\#link-new-command") how to test new command before merging
li merge. Then after merge PR, it accessible without branch override
li Add new command and open a PR.
li Read 
a(href="\#link-new-command") how to test the new command before merging.
li Merge. Then after merging the PR, it will be accessible without branch override.
4 changes: 2 additions & 2 deletions src/command-configs/renderHelpPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function prepareConfigs(cmdConfigs: CommandConfigs): CommandConfigs {
const newCmdConfigs: CommandConfigs = {};

// these commands are added here, as they are defined inside of bot
newCmdConfigs.help = mockStaticConfig("Generates help page & provides a link");
newCmdConfigs.clean = mockStaticConfig("Clears bot comments in PR");
newCmdConfigs.help = mockStaticConfig("Generates the help page & provides a link.");
newCmdConfigs.clean = mockStaticConfig("Clears bot comments in the PR.");

// clean up excluded
for (const cmdName in cmdConfigs) {
Expand Down

0 comments on commit cc738ea

Please sign in to comment.