(statusMeta: Element)
| 28 | } |
| 29 | |
| 30 | async function addInfo(statusMeta: Element): Promise<void> { |
| 31 | const {base} = getBranches(); |
| 32 | const prInfo = await getPrInfo(base.relative); |
| 33 | if (!prInfo.needsUpdate) { |
| 34 | return; |
| 35 | } |
| 36 | |
| 37 | const previousMessage = statusMeta.firstChild!; // Extract now because it won't be the first child anymore |
| 38 | statusMeta.prepend(getBaseCommitNotice(prInfo)); |
| 39 | if (isTextNodeContaining(previousMessage, 'Merging can be performed automatically.')) { |
| 40 | previousMessage.remove(); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | async function init(signal: AbortSignal): Promise<false | void> { |
| 45 | observe( |
nothing calls this directly
no test coverage detected