mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
[feat]: Added Environments API - GetAll list only feature
This commit is contained in:
@@ -2478,6 +2478,17 @@ namespace Octokit
|
||||
return "repos/{0}/{1}/deployments".FormatUri(owner, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for the Deployment Environments API for the given repository.
|
||||
/// </summary>
|
||||
/// <param name="owner">Owner of the repository</param>
|
||||
/// <param name="name">Name of the repository</param>
|
||||
/// <returns>The <see cref="Uri"/> for the Deployments API for the given repository.</returns>
|
||||
public static Uri DeploymentEnvironments(string owner, string name)
|
||||
{
|
||||
return "repos/{0}/{1}/environments".FormatUri(owner, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the <see cref="System.Uri"/> for the Deployment Statuses API for the given deployment.
|
||||
/// </summary>
|
||||
@@ -3137,6 +3148,16 @@ namespace Octokit
|
||||
return "repositories/{0}/deployments".FormatUri(repositoryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for the Deployment Environments API for the given repository.
|
||||
/// </summary>
|
||||
/// <param name="repositoryId">The Id of the repository</param>
|
||||
/// <returns>The <see cref="Uri"/> for the Deployments API for the given repository.</returns>
|
||||
public static Uri DeploymentEnvironments(long repositoryId)
|
||||
{
|
||||
return "repositories/{0}/environments".FormatUri(repositoryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the <see cref="Uri"/> for the Deployment Statuses API for the given deployment.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user