Fix assignment to const variable
This commit is contained in:
parent
e5658c9522
commit
e6ae5b9e87
|
@ -64,7 +64,7 @@ async function handlePullRequest (context, robot) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { found, comment } = await getCheckListComment(context)
|
const { found, comment } = await getCheckListComment(context)
|
||||||
const targetUrl = 'https://github.com/status-im/status-github-bot.git'
|
let targetUrl = 'https://github.com/status-im/status-github-bot.git'
|
||||||
if (found) {
|
if (found) {
|
||||||
targetUrl = comment.url
|
targetUrl = comment.url
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ function checkPRChecklist (str) {
|
||||||
let body = null
|
let body = null
|
||||||
const isBotComment = str.match(/(<!--prchecklist-->)/g)
|
const isBotComment = str.match(/(<!--prchecklist-->)/g)
|
||||||
if (isBotComment == null) return { found, body }
|
if (isBotComment == null) return { found, body }
|
||||||
let res = str.match(/(-\s\[(\s|x)])(.*)/gm)
|
const res = str.match(/(-\s\[(\s|x)])(.*)/gm)
|
||||||
if (res && res.length > 0) {
|
if (res && res.length > 0) {
|
||||||
found = true
|
found = true
|
||||||
body = res
|
body = res
|
||||||
|
|
Loading…
Reference in New Issue