mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
[feat] Expose WebCommitSignoffRequired and HasDiscussions for get and update repository objects (#2773)
This commit is contained in:
@@ -117,11 +117,22 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Optional. Get or set whether to always allow a pull request head branch that is behind its base branch
|
||||
/// to be updated even if it is not required to be up to date before merging, or false otherwise.
|
||||
/// The default is null (do not update). The default when created is false.
|
||||
/// The default is null (do not update). The default when created is false.
|
||||
/// Available since GitHub Enterprise 3.1 (2021-05-06)
|
||||
/// </summary>
|
||||
public bool? AllowUpdateBranch { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional. Either true to require contributors to sign off on web-based commits, or false to not require contributors to sign off on web-based commits.
|
||||
/// The default when created is false.
|
||||
/// </summary>
|
||||
public bool? WebCommitSignoffRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional. Gets or sets whether to enable discussions for the repository. The default is null (do not update). The default when created is false.
|
||||
/// </summary>
|
||||
public bool? HasDiscussions { get; set; }
|
||||
|
||||
internal string DebuggerDisplay => new SimpleJsonSerializer().Serialize(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Octokit
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, long id, string nodeId, User owner, string name, string fullName, bool isTemplate, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, string defaultBranch, int openIssuesCount, DateTimeOffset? pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, Repository parent, Repository source, LicenseMetadata license, bool hasIssues, bool hasWiki, bool hasDownloads, bool hasPages, int subscribersCount, long size, bool? allowRebaseMerge, bool? allowSquashMerge, bool? allowMergeCommit, bool archived, int watchersCount, bool? deleteBranchOnMerge, RepositoryVisibility visibility, IEnumerable<string> topics, bool? allowAutoMerge, bool? allowUpdateBranch)
|
||||
public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, long id, string nodeId, User owner, string name, string fullName, bool isTemplate, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, string defaultBranch, int openIssuesCount, DateTimeOffset? pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, Repository parent, Repository source, LicenseMetadata license, bool hasDiscussions, bool hasIssues, bool hasWiki, bool hasDownloads, bool hasPages, int subscribersCount, long size, bool? allowRebaseMerge, bool? allowSquashMerge, bool? allowMergeCommit, bool archived, int watchersCount, bool? deleteBranchOnMerge, RepositoryVisibility visibility, IEnumerable<string> topics, bool? allowAutoMerge, bool? allowUpdateBranch, bool? webCommitSignoffRequired)
|
||||
{
|
||||
Url = url;
|
||||
HtmlUrl = htmlUrl;
|
||||
@@ -48,6 +48,7 @@ namespace Octokit
|
||||
Parent = parent;
|
||||
Source = source;
|
||||
License = license;
|
||||
HasDiscussions = hasDiscussions;
|
||||
HasIssues = hasIssues;
|
||||
HasWiki = hasWiki;
|
||||
HasDownloads = hasDownloads;
|
||||
@@ -66,6 +67,7 @@ namespace Octokit
|
||||
Visibility = visibility;
|
||||
AllowAutoMerge = allowAutoMerge;
|
||||
AllowUpdateBranch = allowUpdateBranch;
|
||||
WebCommitSignoffRequired = webCommitSignoffRequired;
|
||||
}
|
||||
|
||||
public string Url { get; private set; }
|
||||
@@ -132,6 +134,8 @@ namespace Octokit
|
||||
|
||||
public LicenseMetadata License { get; private set; }
|
||||
|
||||
public bool HasDiscussions { get; private set; }
|
||||
|
||||
public bool HasIssues { get; private set; }
|
||||
|
||||
public bool HasWiki { get; private set; }
|
||||
@@ -162,6 +166,8 @@ namespace Octokit
|
||||
|
||||
public bool? AllowUpdateBranch { get; private set; }
|
||||
|
||||
public bool? WebCommitSignoffRequired { get; private set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user