Skip to content

Commit bc8de59

Browse files
committed
fix(#151): fix gitlab post comments url
1 parent 3a9d367 commit bc8de59

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

dist/cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ class GitLabClient {
12411241
try {
12421242
const { namespace, project, id } = this.extractMergeRequestData(mrUrl);
12431243
const projectId = this.getProjectId(namespace, project);
1244-
const { data } = await this.client.post(`/projects/${projectId}/issues/${id}/notes`, {
1244+
const { data } = await this.client.post(`/projects/${projectId}/merge_requests/${id}/notes`, {
12451245
body: comment,
12461246
});
12471247
if (!data) {

dist/gha/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ class GitLabClient {
12061206
try {
12071207
const { namespace, project, id } = this.extractMergeRequestData(mrUrl);
12081208
const projectId = this.getProjectId(namespace, project);
1209-
const { data } = await this.client.post(`/projects/${projectId}/issues/${id}/notes`, {
1209+
const { data } = await this.client.post(`/projects/${projectId}/merge_requests/${id}/notes`, {
12101210
body: comment,
12111211
});
12121212
if (!data) {

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
node = "20"

src/service/git/gitlab/gitlab-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default class GitLabClient implements GitClient {
169169
const { namespace, project, id } = this.extractMergeRequestData(mrUrl);
170170
const projectId = this.getProjectId(namespace, project);
171171

172-
const { data } = await this.client.post(`/projects/${projectId}/issues/${id}/notes`, {
172+
const { data } = await this.client.post(`/projects/${projectId}/merge_requests/${id}/notes`, {
173173
body: comment,
174174
});
175175

0 commit comments

Comments
 (0)