Skip to content

Commit

Permalink
Disable update-pr-from-base-branch when action is impossible (#2994)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov116 committed Apr 12, 2020
1 parent 80a68b8 commit 15600fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/features/update-pr-from-base-branch.tsx
Expand Up @@ -69,6 +69,10 @@ async function addButton(): Promise<void> {

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'));
Expand Down

0 comments on commit 15600fe

Please sign in to comment.