lower errors about repos without project to warning
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
9f8282fe3d
commit
9b726b326b
|
@ -120,7 +120,7 @@ async function _getOrgProjectByName (github, robot, orgName, projectName, botNam
|
|||
|
||||
const project = ghprojectsPayload.data.find(p => p.name === projectName)
|
||||
if (!project) {
|
||||
robot.log.error(`${botName} - Couldn't find project ${projectName} in ${orgName} org`)
|
||||
robot.log.warning(`${botName} - Couldn't find project ${projectName} in ${orgName} org`)
|
||||
return null
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ async function _getRepoProjectByName (github, robot, repoInfo, projectName, botN
|
|||
const ghprojectsPayload = await github.projects.listForRepo({ ...repoInfo, state: 'open' })
|
||||
const project = ghprojectsPayload.data.find(p => p.name === projectName)
|
||||
if (!project) {
|
||||
robot.log.error(`${botName} - Couldn't find project ${projectName} in repo ${repoInfo.owner}/${repoInfo.repo}`)
|
||||
robot.log.warn(`${botName} - Couldn't find project ${projectName} in repo ${repoInfo.owner}/${repoInfo.repo}`)
|
||||
return null
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue