[feat]: Added Environments API - GetAll list only feature

This commit is contained in:
semyon-p
2022-11-17 19:49:37 +02:00
committed by GitHub
parent b998d08408
commit b0e02e9d2e
13 changed files with 606 additions and 4 deletions

View File

@@ -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>