Skip to content

Commit

Permalink
Replace domain with integration (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Oct 21, 2022
1 parent cdfd2b2 commit 9152c1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ Hey there ${codeOwners.join(
<details>
<summary>Code owner commands</summary>
Code owners of \`${integration}\ can trigger bot actions by commenting:
Code owners of \`${integration}\` can trigger bot actions by commenting:
${Object.entries(ISSUE_COMMENT_COMMANDS)
.filter(([command, data]) => data.invokerType === 'code_owner')
.map(
([command, data]) =>
`- \`${['@home-assistant', command, data.exampleAdditional]
`- \`${['@home-assistant', command, data.exampleAdditional?.replace('<domain>', integration)]
.filter((item) => item !== undefined)
.join(' ')
.trim()}\` ${data.description}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const ISSUE_COMMENT_COMMANDS: { [command: string]: IssueCommentCommand }
unassign: {
description:
'Removes the current integration label and assignees on the issue, add the integration domain after the command.',
exampleAdditional: 'domain',
exampleAdditional: '<domain>',
invokerType: 'code_owner',
requireAdditional: true,
handler: async (
Expand Down

0 comments on commit 9152c1c

Please sign in to comment.