From e83f9b2b3b24d3943983011de1c476d81ab0c0ec Mon Sep 17 00:00:00 2001 From: "aedampir@gmail.com" Date: Tue, 10 May 2016 16:52:34 +0700 Subject: [PATCH] updated XML documentation of ApiUrls --- Octokit/Helpers/ApiUrls.cs | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index 69ccdfc33f..b91b695782 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -743,6 +743,7 @@ public static Uri RepositoryForks(string owner, string repositoryName) /// /// The owner of the repository /// The name of the repository + /// The that lists the watched repositories for the authenticated user. public static Uri Watchers(string owner, string name) { return "repos/{0}/{1}/subscribers".FormatUri(owner, name); @@ -781,6 +782,7 @@ public static Uri Watched(string owner, string name) /// /// The owner of the repository /// The name of the repository + /// The that lists the starred repositories for the authenticated user. public static Uri Stargazers(string owner, string name) { return "repos/{0}/{1}/stargazers".FormatUri(owner, name); @@ -962,6 +964,7 @@ public static Uri PullRequests(string owner, string name) /// The owner of the repository /// The name of the repository /// The pull request number + /// The that returns the pull request merge state. public static Uri MergePullRequest(string owner, string name, int number) { return "repos/{0}/{1}/pulls/{2}/merge".FormatUri(owner, name, number); @@ -973,11 +976,19 @@ public static Uri MergePullRequest(string owner, string name, int number) /// The owner of the repository /// The name of the repository /// The pull request number + /// The that returns the commits on a pull request. public static Uri PullRequestCommits(string owner, string name, int number) { return "repos/{0}/{1}/pulls/{2}/commits".FormatUri(owner, name, number); } + /// + /// Returns the that returns the files on a pull request. + /// + /// The owner of the repository + /// The name of the repository + /// The pull request number + /// The that returns the files on a pull request. public static Uri PullRequestFiles(string owner, string name, int number) { return "repos/{0}/{1}/pulls/{2}/files".FormatUri(owner, name, number); @@ -1651,6 +1662,14 @@ public static Uri RepositoryContent(string owner, string name, string path) return "repos/{0}/{1}/contents/{2}".FormatUri(owner, name, path); } + /// + /// Creates the relative for getting the archive link of the specified repository and path + /// + /// The owner of the repository + /// The name of the repository + /// The format of the archive. Can be either tarball or zipball + /// A valid Git reference + /// The relative for getting the archive link of the specified repository and path public static Uri RepositoryArchiveLink(string owner, string name, ArchiveFormat archiveFormat, string reference) { return "repos/{0}/{1}/{2}/{3}".FormatUri(owner, name, archiveFormat.ToParameter(), reference); @@ -1669,16 +1688,34 @@ public static Uri RepositoryContent(string owner, string name, string path, stri return "repos/{0}/{1}/contents/{2}?ref={3}".FormatUri(owner, name, path, reference); } + /// + /// Creates the relative for getting the pages of the specified repository and path + /// + /// The owner of the repository + /// The name of the repository + /// The relative for getting the pages of the specified repository and path public static Uri RepositoryPage(string owner, string name) { return "repos/{0}/{1}/pages".FormatUri(owner, name); } + /// + /// Creates the relative for getting the page builds of the specified repository and path + /// + /// The owner of the repository + /// The name of the repository + /// The relative for getting the page builds of the specified repository and path public static Uri RepositoryPageBuilds(string owner, string name) { return "repos/{0}/{1}/pages/builds".FormatUri(owner, name); } + /// + /// Creates the relative for getting the latest page builds of the specified repository and path + /// + /// The owner of the repository + /// The name of the repository + /// The relative for getting the latest page builds of the specified repository and path public static Uri RepositoryPageBuildsLatest(string owner, string name) { return "repos/{0}/{1}/pages/builds/latest".FormatUri(owner, name);