mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-07-17 04:00:25 +08:00
Include the forks in the gitolite configuration
This commit is contained in:
@@ -265,6 +265,16 @@ def update_groups_to_db(namespace, pkg, pkg_groups):
|
||||
print "ERROR: %s" % err
|
||||
|
||||
|
||||
def add_fork_to_gitolite():
|
||||
''' Creates a sqlalchemy user object for pagure db '''
|
||||
for fork in pagure.lib.search_projects(session=SESSION, forks=True):
|
||||
print ''
|
||||
print 'repo %s' % (fork.fullname)
|
||||
if masters:
|
||||
print ' RWC = %s' % ' '.join(
|
||||
[user.username for user in fork.committers])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
TRUSTED = grp.getgrnam('cvsadmin')[3]
|
||||
@@ -425,4 +435,6 @@ if __name__ == '__main__':
|
||||
if masters:
|
||||
print ' RWC = %s' % ' '.join(masters)
|
||||
|
||||
add_fork_to_gitolite()
|
||||
|
||||
sys.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user