ci/github-script/bot: fix collaborator warning
This was introduced shortly before merge of the reviewers.js file, but not actually tested - I thought it was not easy to find a PR triggering this warning. However, the scheduled run told me otherwise: The staging-next PR is the perfect candidate.
This commit is contained in:
@@ -55,7 +55,7 @@ async function handleReviewers({
|
|||||||
return username
|
return username
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.status !== 404) throw e
|
if (e.status !== 404) throw e
|
||||||
core.warn(
|
core.warning(
|
||||||
`PR #${pull_number}: User ${username} cannot be requested for review because they don't exist or are not a repository collaborator, ignoring. They probably missed the automated invite to the maintainers team (see <https://github.com/NixOS/nixpkgs/issues/234293>).`,
|
`PR #${pull_number}: User ${username} cannot be requested for review because they don't exist or are not a repository collaborator, ignoring. They probably missed the automated invite to the maintainers team (see <https://github.com/NixOS/nixpkgs/issues/234293>).`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user