Closed tobes64 closed 2 years ago
Fixed. The update_organization_team_members
function wasn't being used until now.
githuborganizer/tasks/github.py
update_organization_settings(organization)
update_organization_teams(organization)
+ update_organization_team_members(organization)
else:
update_organization_settings.delay(organization)
update_organization_teams.delay(organization)
+ update_organization_team_members.delay(organization)
@celery.task(max_retries=0)
githuborganizer/www.py
install_id = payload['installation']['id']
install = ghapp.get_installation(install_id)
organization = install.get_organization()
tasks.update_team_members.delay(organization)
tasks.update_organization_settings.delay(organization)
+ tasks.update_organization_teams.delay(organization)
+ tasks.update_organization_team_members.delay(organization)
return 'Processing organization %s.' % organization
Hi Ted,
I've been trying to get the GitHub Organizer working locally for a while now and have been partially successful in terms of updating certain configurations. This includes:
update_repository_settings
update_repository_security_settings
update_organization_settings
update_repo_branch_protection
The issue is that these seem to be the api webhook requests being made when it should also be updating to include the
teams
section within theorganizer.yaml
file.Example:
From the log output it seems that the default repository is having its configurations updated, but it is completely missing out updating the team related to the organization.
Log output:
The repo name has been changed. Is there something I am missing in the configuration file itself?
Looking at the
www.py
file and the functiongithub_webhook
it looks as if though the header only accepts installation, issues, repository and installation_repositories which all have their own corresponding functions.installation_payload
issue_payload
repository_payload
installation_repositories
Each one of these calls functions within the
tasks/github.py
file are being called by the functions listed above, but the two functions not being called areupdate_organization_team_members
orupdate_team_members
which seem to update the list of team members able to access repos and providing organization users etc.Any assistance on this would be greatly appreciated.