smaller fixes to gitcontrol management
This commit is contained in:
		@ -808,7 +808,7 @@ services:
 | 
				
			|||||||
    service_title: Anti DDoS
 | 
					    service_title: Anti DDoS
 | 
				
			||||||
    service_type: antiddos
 | 
					    service_type: antiddos
 | 
				
			||||||
    teams:
 | 
					    teams:
 | 
				
			||||||
      - name: docs-security-rw
 | 
					      - name: docs-security-services-rw
 | 
				
			||||||
        permission: write
 | 
					        permission: write
 | 
				
			||||||
  - repositories:
 | 
					  - repositories:
 | 
				
			||||||
      - environment: internal
 | 
					      - environment: internal
 | 
				
			||||||
 | 
				
			|||||||
@ -34,7 +34,7 @@ def process_services(args, services):
 | 
				
			|||||||
        block_on_rejected_reviews=True,
 | 
					        block_on_rejected_reviews=True,
 | 
				
			||||||
        dismiss_stale_approvals=True,
 | 
					        dismiss_stale_approvals=True,
 | 
				
			||||||
        enable_push=False,
 | 
					        enable_push=False,
 | 
				
			||||||
        enable_status_check_contexts=["gl/check"],
 | 
					        status_check_contexts=["gl/check"],
 | 
				
			||||||
        enable_merge_whitelist=True,
 | 
					        enable_merge_whitelist=True,
 | 
				
			||||||
        merge_whitelist_usernames=["zuul"]
 | 
					        merge_whitelist_usernames=["zuul"]
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
@ -65,7 +65,7 @@ def process_services(args, services):
 | 
				
			|||||||
                continue
 | 
					                continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if repo["type"] == 'gitea':
 | 
					            if repo["type"] == 'gitea':
 | 
				
			||||||
                teams = [{"name": "docs-infra-team", "permission": "write"}]
 | 
					                teams = []
 | 
				
			||||||
                branch_protections_main = copy.deepcopy(gitea_bp)
 | 
					                branch_protections_main = copy.deepcopy(gitea_bp)
 | 
				
			||||||
                if "teams" in repo:
 | 
					                if "teams" in repo:
 | 
				
			||||||
                    teams_def = repo["teams"]
 | 
					                    teams_def = repo["teams"]
 | 
				
			||||||
@ -75,10 +75,7 @@ def process_services(args, services):
 | 
				
			|||||||
                    for team in teams_def:
 | 
					                    for team in teams_def:
 | 
				
			||||||
                        branch_protections_main["approvals_whitelist_teams"].append(
 | 
					                        branch_protections_main["approvals_whitelist_teams"].append(
 | 
				
			||||||
                            team["name"])
 | 
					                            team["name"])
 | 
				
			||||||
                        teams.append(dict(
 | 
					                        teams.append(team["name"])
 | 
				
			||||||
                            name=team["name"],
 | 
					 | 
				
			||||||
                            permission=team["permission"]
 | 
					 | 
				
			||||||
                        ))
 | 
					 | 
				
			||||||
                data = copy.deepcopy(gitea_repo_template)
 | 
					                data = copy.deepcopy(gitea_repo_template)
 | 
				
			||||||
                data["description"] = (
 | 
					                data["description"] = (
 | 
				
			||||||
                    f"Open Telekom Cloud {service['service_title']} "
 | 
					                    f"Open Telekom Cloud {service['service_title']} "
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user