(options: {
title: string;
body: string;
head: string;
base: string;
})
| 123 | * Create a new PR |
| 124 | */ |
| 125 | export async function createPr(options: { |
| 126 | title: string; |
| 127 | body: string; |
| 128 | head: string; |
| 129 | base: string; |
| 130 | }) { |
| 131 | let response = await request("POST /repos/{owner}/{repo}/pulls", { |
| 132 | ...requestOptions(), |
| 133 | title: options.title, |
| 134 | body: options.body, |
| 135 | head: options.head, |
| 136 | base: options.base, |
| 137 | }); |
| 138 | |
| 139 | return response.data; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Update an existing PR |
no test coverage detected