MCPcopy Create free account
hub / github.com/github/docs / listPulls

Function listPulls

script/helpers/git-utils.js:107–119  ·  view source on GitHub ↗
(owner, repo)

Source from the content-addressed store, hash-verified

105
106// https://docs.github.com/en/rest/reference/pulls#list-pull-requests
107export 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
121export async function createIssueComment(owner, repo, pullNumber, body) {
122 try {

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected