(message, command)
| 45 | }; |
| 46 | return values[outcome] || values.unknown; |
| 47 | } |
| 48 | |
| 49 | function forkSelectionAllowed(fork, branchId) { |
| 50 | if (!fork || !fork.comparison || !Array.isArray(fork.comparison.branches)) return false; |
| 51 | if (fork.status === 'landed') return false; |
| 52 | const branch = fork.comparison.branches.find((entry) => entry.branch_id === branchId); |
| 53 | return Boolean(branch && branch.comparable); |
| 54 | } |
| 55 |
no test coverage detected