MCPcopy Create free account
hub / github.com/axios/axios / createComment

Method createComment

bin/GithubAPI.js:26–28  ·  view source on GitHub ↗
(issue, body)

Source from the content-addressed store, hash-verified

24 }
25
26 async createComment(issue, body) {
27 return (await this.axios.post(`/issues/${issue}/comments`, {body})).data;
28 }
29
30 async getComments(issue, {desc = false, per_page= 100, page = 1} = {}) {
31 return (await this.axios.get(`/issues/${issue}/comments`, {params: {direction: desc ? 'desc' : 'asc', per_page, page}})).data;

Callers 1

addCommentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected