MCPcopy Index your code
hub / github.com/iterative/cml / commitComments

Method commitComments

src/drivers/github.js:135–147  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

133 }
134
135 async commitComments(opts = {}) {
136 const { commitSha } = opts;
137 const { repos, paginate } = octokit(this.token, this.repo);
138
139 return (
140 await paginate(repos.listCommentsForCommit, {
141 ...ownerRepo({ uri: this.repo }),
142 commit_sha: commitSha
143 })
144 ).map(({ id, body }) => {
145 return { id, body };
146 });
147 }
148
149 async commitPrs(opts = {}) {
150 const { commitSha, state = 'open' } = opts;

Callers

nothing calls this directly

Calls 2

octokitFunction · 0.85
ownerRepoFunction · 0.85

Tested by

no test coverage detected