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

Function updatePrTitle

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

Source from the content-addressed store, hash-verified

65}
66
67async function updatePrTitle(): Promise<void> {
68 if (!needsSubmission()) {
69 return;
70 }
71
72 // Remove PR number from commit title
73 const title = cleanPrCommitTitle(getCurrentCommitTitle(), getConversationNumber()!);
74
75 await api.v3(`pulls/${getConversationNumber()!}`, {
76 method: 'PATCH',
77 body: {title},
78 });
79}
80
81async function updateCommitTitle(): Promise<void> {
82 if (!needsSubmission()) {

Callers

nothing calls this directly

Calls 4

needsSubmissionFunction · 0.85
cleanPrCommitTitleFunction · 0.85
getCurrentCommitTitleFunction · 0.85
getConversationNumberFunction · 0.85

Tested by

no test coverage detected