diff --git a/src/GitLabApiClient/GitLabApiClient.csproj b/src/GitLabApiClient/GitLabApiClient.csproj index 0a0598fc..2df47610 100644 --- a/src/GitLabApiClient/GitLabApiClient.csproj +++ b/src/GitLabApiClient/GitLabApiClient.csproj @@ -4,7 +4,7 @@ net8.0 10 Apiiro.GitLabApiClient - 0.1.38 + 0.1.39 Apiiro Apiiro GitLabApiClient diff --git a/src/GitLabApiClient/IIssuesClient.cs b/src/GitLabApiClient/IIssuesClient.cs index 5659eeff..c2456343 100644 --- a/src/GitLabApiClient/IIssuesClient.cs +++ b/src/GitLabApiClient/IIssuesClient.cs @@ -108,7 +108,7 @@ Task> GetNotesAsync(ProjectId projectId, long issueIid, /// The ID, path or of the project. /// The IID of an issue. /// Create issue note request. - Task CreateNoteAsync(ProjectId projectId, int issueIid, CreateIssueNoteRequest request); + Task CreateNoteAsync(ProjectId projectId, long issueIid, CreateIssueNoteRequest request); /// /// Updated existing issue. diff --git a/src/GitLabApiClient/IMergeRequestsClient.cs b/src/GitLabApiClient/IMergeRequestsClient.cs index 497d39ae..90c91c19 100644 --- a/src/GitLabApiClient/IMergeRequestsClient.cs +++ b/src/GitLabApiClient/IMergeRequestsClient.cs @@ -80,7 +80,7 @@ public interface IMergeRequestsClient /// The ID, path or of the project. /// The IID of an Merge Request. /// Create Merge Request note request. - Task CreateNoteAsync(ProjectId projectId, int mergeRequestId, CreateMergeRequestNoteRequest request); + Task CreateNoteAsync(ProjectId projectId, long mergeRequestId, CreateMergeRequestNoteRequest request); /// /// Retrieves notes (comments) of a merge request. diff --git a/src/GitLabApiClient/IssuesClient.cs b/src/GitLabApiClient/IssuesClient.cs index 15cf04b9..bb3ce9cb 100644 --- a/src/GitLabApiClient/IssuesClient.cs +++ b/src/GitLabApiClient/IssuesClient.cs @@ -164,7 +164,7 @@ public async Task CreateAsync(ProjectId projectId, CreateIssueRequest req /// The ID, path or of the project. /// The IID of an issue. /// Create issue note request. - public async Task CreateNoteAsync(ProjectId projectId, int issueIid, CreateIssueNoteRequest request) => + public async Task CreateNoteAsync(ProjectId projectId, long issueIid, CreateIssueNoteRequest request) => await _httpFacade.Post($"projects/{projectId}/issues/{issueIid}/notes", request); /// diff --git a/src/GitLabApiClient/MergeRequestsClient.cs b/src/GitLabApiClient/MergeRequestsClient.cs index 620b0029..67b10de5 100644 --- a/src/GitLabApiClient/MergeRequestsClient.cs +++ b/src/GitLabApiClient/MergeRequestsClient.cs @@ -131,7 +131,7 @@ public async Task DeleteAsync(ProjectId projectId, int mergeRequestId) => /// The ID, path or of the project. /// The IID of an Merge Request. /// Create Merge Request note request. - public async Task CreateNoteAsync(ProjectId projectId, int mergeRequestId, CreateMergeRequestNoteRequest request) => + public async Task CreateNoteAsync(ProjectId projectId, long mergeRequestId, CreateMergeRequestNoteRequest request) => await _httpFacade.Post($"projects/{projectId}/merge_requests/{mergeRequestId}/notes", request); ///