mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-22 14:41:05 +01:00
fix(githubUtils): add space and #
This commit is contained in:
parent
ffe2dbc819
commit
07c241ef66
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ export const search = async(query: string, repository: string, state: IssueState
|
||||||
if (!query) {
|
if (!query) {
|
||||||
const array = arrayFiltered.slice(0, 25);
|
const array = arrayFiltered.slice(0, 25);
|
||||||
return array.map((issueOrPr: Issue | PullRequest) => new Object({
|
return array.map((issueOrPr: Issue | PullRequest) => new Object({
|
||||||
name: `${issueOrPr.type.slice(0, -1)}${issueOrPr.number}) ${formatEmojiStatus(issueOrPr)} ${issueOrPr.title.slice(0, 93 - issueOrPr.id.toString().length).replace(githubTitleClean, '')}`,
|
name: `${issueOrPr.type.slice(0, -1)} #${issueOrPr.number}) ${formatEmojiStatus(issueOrPr)} ${issueOrPr.title.slice(0, 91 - issueOrPr.id.toString().length).replace(githubTitleClean, '')}`,
|
||||||
value: issueOrPr.number.toString()
|
value: issueOrPr.number.toString()
|
||||||
})) as APIApplicationCommandOptionChoice[]
|
})) as APIApplicationCommandOptionChoice[]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue