MCPcopy
hub / github.com/iterative/cml / commitComments

Method commitComments

src/drivers/gitlab.js:92–103  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

90 }
91
92 async commitComments(opts = {}) {
93 const { commitSha } = opts;
94
95 const projectPath = await this.projectPath();
96 const endpoint = `/projects/${projectPath}/repository/commits/${commitSha}/comments`;
97
98 const comments = await this.request({ endpoint, method: 'GET' });
99
100 return comments.map(({ id, note: body }) => {
101 return { id, body };
102 });
103 }
104
105 async commitPrs(opts = {}) {
106 const { commitSha } = opts;

Callers

nothing calls this directly

Calls 2

projectPathMethod · 0.95
requestMethod · 0.95

Tested by

no test coverage detected