コード例 #1
0
        public TheAddProtectedBranchUserRestrictionsMethod()
        {
            _github = Helper.GetAuthenticatedClient();
            _client = _github.Repository.Branch;

            _orgRepoContext = _github.CreateOrganizationRepositoryWithProtectedBranch().Result;
        }
コード例 #2
0
        public TheAddProtectedBranchTeamRestrictionsMethod()
        {
            _github = Helper.GetAuthenticatedClient();
            _client = _github.Repository.Branch;

            _contextOrgTeam2 = _github.CreateTeamContext(Helper.Organization, new NewTeam(Helper.MakeNameWithTimestamp("team2"))).Result;
            _orgRepoContext  = _github.CreateOrganizationRepositoryWithProtectedBranch().Result;
        }
コード例 #3
0
            public TheUpdateReviewEnforcementMethod()
            {
                var github = Helper.GetAuthenticatedClient();

                _client = new ObservableRepositoryBranchesClient(github);

                _userRepoContext = github.CreateRepositoryWithProtectedBranch().Result;
                _orgRepoContext  = github.CreateOrganizationRepositoryWithProtectedBranch().Result;
            }
コード例 #4
0
        public TheUpdateBranchProtectionMethod()
        {
            var github = Helper.GetAuthenticatedClient();

            _client = github.Repository.Branch;

            _userRepoContext = github.CreateRepositoryWithProtectedBranch().Result;
            _orgRepoContext  = github.CreateOrganizationRepositoryWithProtectedBranch().Result;
        }