This folder contains a script (sync_teams.py
) that automatically:
- creates GitHub teams
- updates their membership based on the
community_team_members.json
databag- The databag is used to create the Community Team Members — Creative Commons Open Source page
- The databag is populated from the Community Team Tracker board on Asana by
../push_data_to_ccos/
This script is run via GitHub Actions automatically.
- Install Pipenv
- Navigate to the
sync_community_team
folder and runpipenv install
- Set the
ADMIN_GITHUB_TOKEN
environment variable with your GitHub token. You will need a GitHub token with admin permissions to thecreativecommons
GitHub organization. - Run the script:
pipenv run sync_teams.py
(or if you're in a virtual environment already,python3 sync_teams.py
)
Community Team member data is fetched from the Community Team databag hosted on the Creative Commons Open Source website.
GitHub teams are created, if non existent, and members are added or removed, as applicable, in the set_teams_on_github.py
file.
See repository README for licensing information, etc: