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

Function createIssueComment

script/helpers/git-utils.js:121–134  ·  view source on GitHub ↗
(owner, repo, pullNumber, body)

Source from the content-addressed store, hash-verified

119}
120
121export async function createIssueComment(owner, repo, pullNumber, body) {
122 try {
123 const { data } = await github.issues.createComment({
124 owner,
125 repo,
126 issue_number: pullNumber,
127 body,
128 })
129 return data
130 } catch (err) {
131 console.log(`error creating a review comment on PR ${pullNumber} in ${owner}/${repo}`)
132 throw err
133 }
134}
135
136// Search for a string in a file in code and return the array of paths to files that contain string
137export async function getPathsWithMatchingStrings(strArr, org, repo) {

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected