( contentType: 'title' | 'body', fullVersion: string )
| 5 | import { sh } from '../sh' |
| 6 | |
| 7 | async function getPullRequestContent( |
| 8 | contentType: 'title' | 'body', |
| 9 | fullVersion: string |
| 10 | ): Promise<string> { |
| 11 | const result = await sh( |
| 12 | './script/draft-release/release-pr-content.sh', |
| 13 | contentType, |
| 14 | fullVersion |
| 15 | ) |
| 16 | return result.trim() |
| 17 | } |
| 18 | |
| 19 | const getPullRequestBody = (fullVersion: string) => |
| 20 | getPullRequestContent('body', fullVersion) |
no test coverage detected