()
| 65 | } |
| 66 | |
| 67 | async 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 | |
| 81 | async function updateCommitTitle(): Promise<void> { |
| 82 | if (!needsSubmission()) { |
nothing calls this directly
no test coverage detected