diff --git a/source/features/update-pr-from-base-branch.tsx b/source/features/update-pr-from-base-branch.tsx index 8d1cbf64da2..dbeb713bc1d 100644 --- a/source/features/update-pr-from-base-branch.tsx +++ b/source/features/update-pr-from-base-branch.tsx @@ -69,6 +69,10 @@ async function addButton(): Promise { const {base, head} = getBranches(); + if (head === 'unknown repository') { + return; + } + // Draft PRs already have this info on the page const [outOfDateContainer] = select.all('.completeness-indicator-problem + .status-heading') .filter(title => (title.textContent!).includes('out-of-date'));