mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 16:42:03 +00:00
043e64b89f
* add Archived to ProjectCard response add Archived to ProjectCardUpdate update integration tests * Add ProjectCardRequest model and update GetAll calls to use it Update unit tests Update integration tests * skip_branch_with_pr still ends up building the branch on the initial push, so let's only build master instead
39 lines
993 B
C#
39 lines
993 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Globalization;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class ProjectCardUpdate
|
|
{
|
|
public ProjectCardUpdate()
|
|
{
|
|
}
|
|
|
|
[Obsolete("This constructor will be removed in a future release, due to the 'Note' parameter not being mandatory. Use object initializer syntax instead.")]
|
|
public ProjectCardUpdate(string note)
|
|
{
|
|
Note = note;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The new note of the card.
|
|
/// </summary>
|
|
public string Note { get; set; }
|
|
|
|
/// <summary>
|
|
/// Archive/Unarchive the card.
|
|
/// </summary>
|
|
public bool? Archived { get; set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Note: {0}, Archived: {1}", Note, Archived?.ToString() ?? "null");
|
|
}
|
|
}
|
|
}
|
|
}
|