Retrieve the normalized PullRequestStatus for the provided github status state.
(state: StatusState)
| 268 | |
| 269 | /** Retrieve the normalized PullRequestStatus for the provided github status state. */ |
| 270 | function normalizeGithubStatusState(state: StatusState): PullRequestStatus { |
| 271 | switch (state) { |
| 272 | case 'FAILURE': |
| 273 | case 'ERROR': |
| 274 | return PullRequestStatus.FAILING; |
| 275 | case 'PENDING': |
| 276 | return PullRequestStatus.PENDING; |
| 277 | case 'SUCCESS': |
| 278 | case 'EXPECTED': |
| 279 | return PullRequestStatus.PASSING; |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | /** Retrieve the normalized PullRequestStatus for the provided github check state. */ |
| 284 | function normalizeGithubCheckState( |
no outgoing calls
no test coverage detected