()
| 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 |
| 40 | if (!/squash/i.test($optional(confirmMergeButton)?.textContent ?? '')) { |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | const currentCommitTitle = getCurrentCommitTitle(); |
| 45 | return Boolean(currentCommitTitle) && (createCommitTitle() !== currentCommitTitle); |
| 46 | } |
| 47 | |
| 48 | function getUi(): HTMLElement { |
| 49 | const cancelButton = <button type="button" className="btn-link Link--muted text-underline rgh-sync-pr-commit-title"> |
no test coverage detected