Skip to content

Commit

Permalink
Merge pull request #46 from ipfs/conflict
Browse files Browse the repository at this point in the history
fix: catch error if there or conflicts on branch update
  • Loading branch information
galargh authored Aug 31, 2022
2 parents 8670a17 + ebb4ffa commit a0ff678
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/src/actions/update-pull-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ async function updatePullRequests() {
continue
}

github.client.pulls.updateBranch({
...context.repo,
pull_number: pull.number
})
try {
github.client.pulls.updateBranch({
...context.repo,
pull_number: pull.number
})
} catch (error) {
// we might be unable to update the pull request if it there is a conflict
console.error(error)
}
}
}

Expand Down

0 comments on commit a0ff678

Please sign in to comment.