#52 align gating options
Merged 4 years ago by zuul. Opened 4 years ago by fbo.
fbo/fedora-project-config helper-gating  into  master

@@ -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):

no initial comment

Build succeeded.

Metadata Update from @fbo:
- Pull-request tagged with: gateit

4 years ago

Build succeeded (gate pipeline).

Pull-Request has been merged by zuul

4 years ago