This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Extract common "isCheckedOutPullRequest" function #2045
Open
Description
From #1995 (comment):
Yeah the code looks pretty similar, I'd be 👍 to extract it. That said, I'm okay shipping as is, especially since we're short on time before the Atom release. If we need this logic a third time in the future I'd say we definitely want to extract it, but for now I'm fine either way.
The common code is in lib/controllers/comment-decorations-controller.js
and lib/controllers/pr-checkout-controller.js
.