(owner, repo)
| 105 | |
| 106 | // https://docs.github.com/en/rest/reference/pulls#list-pull-requests |
| 107 | export async function listPulls(owner, repo) { |
| 108 | try { |
| 109 | const { data } = await github.pulls.list({ |
| 110 | owner, |
| 111 | repo, |
| 112 | per_page: 100, |
| 113 | }) |
| 114 | return data |
| 115 | } catch (err) { |
| 116 | console.log(`error listing pulls in ${owner}/${repo}`) |
| 117 | throw err |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | export async function createIssueComment(owner, repo, pullNumber, body) { |
| 122 | try { |