Skip to content

Commit

Permalink
CreateNoteAsync param to long (#39)
Browse files Browse the repository at this point in the history
* change to ling

* Update GitLabApiClient.csproj
  • Loading branch information
snirburkush authored Oct 16, 2024
1 parent 2ef17ae commit c40c95e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/GitLabApiClient/GitLabApiClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<LangVersion>10</LangVersion>
<PackageId>Apiiro.GitLabApiClient</PackageId>
<Version>0.1.38</Version>
<Version>0.1.39</Version>
<Authors>Apiiro</Authors>
<Company>Apiiro</Company>
<PackageDescription>GitLabApiClient</PackageDescription>
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabApiClient/IIssuesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Task<IList<Note>> GetNotesAsync(ProjectId projectId, long issueIid,
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
/// <param name="issueIid">The IID of an issue.</param>
/// <param name="request">Create issue note request.</param>
Task<Note> CreateNoteAsync(ProjectId projectId, int issueIid, CreateIssueNoteRequest request);
Task<Note> CreateNoteAsync(ProjectId projectId, long issueIid, CreateIssueNoteRequest request);

/// <summary>
/// Updated existing issue.
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabApiClient/IMergeRequestsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public interface IMergeRequestsClient
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
/// <param name="mergeRequestId">The IID of an Merge Request.</param>
/// <param name="request">Create Merge Request note request.</param>
Task<Note> CreateNoteAsync(ProjectId projectId, int mergeRequestId, CreateMergeRequestNoteRequest request);
Task<Note> CreateNoteAsync(ProjectId projectId, long mergeRequestId, CreateMergeRequestNoteRequest request);

/// <summary>
/// Retrieves notes (comments) of a merge request.
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabApiClient/IssuesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public async Task<Issue> CreateAsync(ProjectId projectId, CreateIssueRequest req
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
/// <param name="issueIid">The IID of an issue.</param>
/// <param name="request">Create issue note request.</param>
public async Task<Note> CreateNoteAsync(ProjectId projectId, int issueIid, CreateIssueNoteRequest request) =>
public async Task<Note> CreateNoteAsync(ProjectId projectId, long issueIid, CreateIssueNoteRequest request) =>
await _httpFacade.Post<Note>($"projects/{projectId}/issues/{issueIid}/notes", request);

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/GitLabApiClient/MergeRequestsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async Task DeleteAsync(ProjectId projectId, int mergeRequestId) =>
/// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
/// <param name="mergeRequestId">The IID of an Merge Request.</param>
/// <param name="request">Create Merge Request note request.</param>
public async Task<Note> CreateNoteAsync(ProjectId projectId, int mergeRequestId, CreateMergeRequestNoteRequest request) =>
public async Task<Note> CreateNoteAsync(ProjectId projectId, long mergeRequestId, CreateMergeRequestNoteRequest request) =>
await _httpFacade.Post<Note>($"projects/{projectId}/merge_requests/{mergeRequestId}/notes", request);

/// <summary>
Expand Down

0 comments on commit c40c95e

Please sign in to comment.