MCPcopy Index your code
hub / github.com/refined-github/refined-github / needsSubmission

Function needsSubmission

source/features/sync-pr-commit-title.tsx:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38function 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
48function getUi(): HTMLElement {
49 const cancelButton = <button type="button" className="btn-link Link--muted text-underline rgh-sync-pr-commit-title">

Callers 3

updateUiFunction · 0.85
updatePrTitleFunction · 0.85
updateCommitTitleFunction · 0.85

Calls 2

getCurrentCommitTitleFunction · 0.85
createCommitTitleFunction · 0.85

Tested by

no test coverage detected