in src/server/services/status.js [182:203]
async update(args) {
logger.debug(`StatusService-->update for the repo ${args.owner}/${args.repo}/pull/${args.number}`)
if (args && !args.sha) {
try {
const resp = (await getPR(args)).data
if (!resp || resp.message == 'Not found') {
return
}
if (resp && resp.head) {
args.sha = resp.head.sha
return updateStatus(args)
} else if (args) {
return updateStatus(args)
}
} catch (error) {
logger.warn(new Error(`${error} with args: ${args}`).stack)
}
}
if (args.sha) {
return updateStatus(args)
}
}