Skip to content
Snippets Groups Projects
Commit 48f2b5a2 authored by Rhys Arkins's avatar Rhys Arkins Committed by singapore
Browse files

fix: add check for base before comparing sha (#997)

parent f69af75c
No related branches found
No related tags found
No related merge requests found
......@@ -635,7 +635,7 @@ async function getPr(prNo) {
pr.canRebase = true;
}
}
if (pr.base.sha !== config.baseCommitSHA) {
if (!pr.base || pr.base.sha !== config.baseCommitSHA) {
pr.isStale = true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment