Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
substrate-tip-bot
Commits
38380cd5
Commit
38380cd5
authored
Sep 26, 2022
by
Szegoo
Browse files
Accept both \tip and /tip
parent
5dc2cc2d
Pipeline
#217252
passed with stages
in 1 minute and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bot.ts
View file @
38380cd5
...
@@ -28,7 +28,7 @@ const onIssueComment = async (
...
@@ -28,7 +28,7 @@ const onIssueComment = async (
if
(
if
(
!
isPullRequest
(
context
)
||
!
isPullRequest
(
context
)
||
context
.
payload
.
action
!==
"
created
"
||
context
.
payload
.
action
!==
"
created
"
||
!
botMention
?.
startsWith
(
"
/tip
"
)
!
(
botMention
?.
startsWith
(
"
/tip
"
)
||
botMention
?.
startsWith
(
"
\\
tip
"
))
)
{
)
{
return
return
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment