Skip to content

Commit

Permalink
add new field to model for indicating whether repository is a template (
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Feb 9, 2020
1 parent 8cf4d58 commit 8dac968
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Octokit/Models/Response/Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public Repository(long id)
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, 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)
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)
{
Url = url;
HtmlUrl = htmlUrl;
Expand All @@ -28,6 +28,7 @@ public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, st
Owner = owner;
Name = name;
FullName = fullName;
IsTemplate = isTemplate;
Description = description;
Homepage = homepage;
Language = language;
Expand Down Expand Up @@ -83,6 +84,8 @@ public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, st

public string FullName { get; protected set; }

public bool IsTemplate { get; protected set; }

public string Description { get; protected set; }

public string Homepage { get; protected set; }
Expand Down

0 comments on commit 8dac968

Please sign in to comment.