(commentField: HTMLElement)
| 113 | } |
| 114 | |
| 115 | function addDraftBanner(commentField: HTMLElement): void { |
| 116 | commentField.prepend( |
| 117 | createBanner({ |
| 118 | icon: <GitPullRequestDraftIcon className="m-0 tmp-m-0" />, |
| 119 | classes: 'p-2 my-2 mx-md-2 text-small color-fg-muted border-0'.split(' '), |
| 120 | text: <> |
| 121 | This is a <strong>draft PR</strong>, it might not be ready for review. |
| 122 | </>, |
| 123 | }), |
| 124 | ); |
| 125 | } |
| 126 | |
| 127 | function initDraft(signal: AbortSignal): void { |
| 128 | observe(newCommentField, addDraftBanner, {signal}); |
nothing calls this directly
no test coverage detected