(
statuses: {
context: string;
target_url: string;
state: PreviewState;
}[],
previewContext: string,
)
| 325 | * matching status is inferred via `isPreviewContext`. |
| 326 | */ |
| 327 | export function getPreviewStatus( |
| 328 | statuses: { |
| 329 | context: string; |
| 330 | target_url: string; |
| 331 | state: PreviewState; |
| 332 | }[], |
| 333 | previewContext: string, |
| 334 | ) { |
| 335 | return statuses.find(({ context }) => { |
| 336 | return isPreviewContext(context, previewContext); |
| 337 | }); |
| 338 | } |
| 339 | |
| 340 | function getConflictingBranches(branchName: string) { |
| 341 | // for cms/posts/post-1, conflicting branches are cms/posts, cms |
no test coverage detected