Skip to content

Commit

Permalink
feat: Add contributors and core permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Jul 22, 2024
1 parent 6ca606d commit 8dc9365
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pulumi/github/repos/pipelines/testpipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

# Make branches foreach (['master', 'dev', 'TEMPLATE'] as $branch) {
# 'repo_default_branch' => 'default branch master (released) or dev (no releases)',
# TODO Toggle this on dev and master?
# TODO Toggle this on dev as default if there's not release?
# 'branch_master_exists' => 'master branch: branch must exist',
branch_default_testpipeline = github.BranchDefault(
f"branch_default_{NAME}",
Expand Down Expand Up @@ -197,5 +197,17 @@
target="branch",
opts=pulumi.ResourceOptions(protect=True),
)
# TODO 'team_contributors' => 'Write access for nf-core/contributors',
# TODO 'team_core' => 'Admin access for nf-core/core',
# 'team_contributors' => 'Write access for nf-core/contributors',
contributors_team_repo_testpipeline = github.TeamRepository(
"contributors_team_repo_testpipeline",
team_id="contributors",
repository="testpipeline",
permission="push",
)
# 'team_core' => 'Admin access for nf-core/core',
core_team_repo_testpipeline = github.TeamRepository(
"core_team_repo_testpipeline",
team_id="core",
repository="testpipeline",
permission="admin",
)

0 comments on commit 8dc9365

Please sign in to comment.