| |
@@ -85,7 +85,6 @@
|
| |
config = client.get_config(project)
|
| |
config['Web-hooks'] = BASE_WH_URL % host
|
| |
config['pull_requests'] = True
|
| |
- config['notify_on_pull-request_flag'] = True
|
| |
if gating:
|
| |
config['Minimum_score_to_merge_pull-request'] = 0
|
| |
config['open_metadata_access_to_all'] = False
|
| |
@@ -96,13 +95,14 @@
|
| |
config[k] = 1 if v else 0
|
| |
client.set_config(project, config)
|
| |
logging.debug("Applying new setting set on %s" % project)
|
| |
- acls = {
|
| |
- 'user_type': 'user',
|
| |
- 'name': 'zuul',
|
| |
- 'acl': 'commit'
|
| |
- }
|
| |
- client.set_acl(project, acls)
|
| |
- logging.debug("Adding zuul user as admin on %s" % project)
|
| |
+ if gating:
|
| |
+ acls = {
|
| |
+ 'user_type': 'user',
|
| |
+ 'name': 'zuul',
|
| |
+ 'acl': 'commit'
|
| |
+ }
|
| |
+ client.set_acl(project, acls)
|
| |
+ logging.debug("Adding zuul user as admin on %s" % project)
|
| |
|
| |
|
| |
def process(client, projects, gating, host):
|
| |