public TheAddProtectedBranchUserRestrictionsMethod() { _github = Helper.GetAuthenticatedClient(); _client = _github.Repository.Branch; _orgRepoContext = _github.CreateOrganizationRepositoryWithProtectedBranch().Result; }
public TheAddProtectedBranchTeamRestrictionsMethod() { _github = Helper.GetAuthenticatedClient(); _client = _github.Repository.Branch; _contextOrgTeam2 = _github.CreateTeamContext(Helper.Organization, new NewTeam(Helper.MakeNameWithTimestamp("team2"))).Result; _orgRepoContext = _github.CreateOrganizationRepositoryWithProtectedBranch().Result; }
public TheUpdateReviewEnforcementMethod() { var github = Helper.GetAuthenticatedClient(); _client = new ObservableRepositoryBranchesClient(github); _userRepoContext = github.CreateRepositoryWithProtectedBranch().Result; _orgRepoContext = github.CreateOrganizationRepositoryWithProtectedBranch().Result; }
public TheUpdateBranchProtectionMethod() { var github = Helper.GetAuthenticatedClient(); _client = github.Repository.Branch; _userRepoContext = github.CreateRepositoryWithProtectedBranch().Result; _orgRepoContext = github.CreateOrganizationRepositoryWithProtectedBranch().Result; }