2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00

chore(ci): fixed release notification action; (#6064)

This commit is contained in:
Dmitriy Mozgovoy
2023-11-09 00:47:06 +02:00
committed by GitHub
parent 7144f10dc5
commit 7009715369
4 changed files with 36 additions and 7 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ export default class GithubAPI {
return (await this.axios.post(`/issues/${issue}/comments`, {body})).data;
}
async getComments(issue, {desc = false, per_page= 100, page = 1}) {
async getComments(issue, {desc = false, per_page= 100, page = 1} = {}) {
return (await this.axios.get(`/issues/${issue}/comments`, {params: {direction: desc ? 'desc' : 'asc', per_page, page}})).data;
}
@@ -40,11 +40,11 @@ export default class GithubAPI {
}
async appendLabels(issue, labels) {
return (await this.axios.post(`issues/${issue}/labels`, {labels})).data;
return (await this.axios.post(`/issues/${issue}/labels`, {labels})).data;
}
async getUser(user) {
return (await this.axios.get(`users/${user}`)).data;
return (await githubAxios.get(`/users/${user}`)).data;
}
async isCollaborator(user) {