lower errors about repos without project to warning

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-09-30 11:23:03 +02:00
parent 9f8282fe3d
commit 9b726b326b
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 2 additions and 2 deletions

View File

@ -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
}