forked from nmklotas/GitLabApiClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API for get single merge request, create note on merge request, g…
…et pipelines for merge request, delete for webhooks (nmklotas#137) Co-Authored-By: Joseph Petersen <[email protected]>
- Loading branch information
1 parent
4e8c21e
commit 7e891a8
Showing
7 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/GitLabApiClient/Models/Notes/Requests/CreateMergeRequestNoteRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using GitLabApiClient.Internal.Utilities; | ||
using Newtonsoft.Json; | ||
|
||
namespace GitLabApiClient.Models.Notes.Requests | ||
{ | ||
/// <summary> | ||
/// Used to create issue notes in a project. | ||
/// </summary> | ||
public sealed class CreateMergeRequestNoteRequest | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CreateMergeRequestNoteRequest "/> class. | ||
/// </summary> | ||
/// <param name="body">The content of a note.</param> | ||
public CreateMergeRequestNoteRequest(string body) => Body = body; | ||
|
||
public CreateMergeRequestNoteRequest() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// The content of a note. | ||
/// </summary> | ||
[JsonProperty("body")] | ||
public string Body { get; set; } | ||
|
||
/// <summary> | ||
/// Date time string, ISO 8601 formatted, e.g. 2016-03-11T03:45:40Z (requires admin or project/group owner rights) | ||
/// </summary> | ||
[JsonProperty("created_at")] | ||
public DateTime? CreatedAt { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters