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

Function createCommitTitle

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

Source from the content-addressed store, hash-verified

24}
25
26function 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
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

Callers 2

needsSubmissionFunction · 0.85
updateCommitTitleFunction · 0.85

Calls 2

parseRenderedTextFunction · 0.85
formatPrCommitTitleFunction · 0.85

Tested by

no test coverage detected