()
| 24 | } |
| 25 | |
| 26 | function createCommitTitle(): string { |
| 27 | const prTitle = $([ |
| 28 | 'h1[class^="prc-PageHeader-Title"] .markdown-title', |
| 29 | 'div[class^="prc-PageLayout-Header"] input', |
| 30 | // Old view |
| 31 | // TODO [2026-08-01]: Remove |
| 32 | 'input#issue_title', |
| 33 | ]); |
| 34 | const prTitleText = prTitle instanceof HTMLInputElement ? prTitle.value.trim() : parseRenderedText(prTitle); |
| 35 | return formatPrCommitTitle(prTitleText); |
| 36 | } |
| 37 | |
| 38 | function needsSubmission(): boolean { |
| 39 | // `needsSubmission` is also called when the PR title is changed, in order to update the open merge box in real time |
no test coverage detected