This repository contains all the information for administrators to manage Django Commons packages.
-
Review new issues/application at https://github.com/django-commons/membership/issues/
-
If they are not a real human or not reasonably trustworthy (new member requirements), close the issue, asking for more information they are a human and not a spambot. You can explain that by being a member, they can impact repositories immediately.
-
Add the user's GitHub username to the
members
collection in theterraform/production/org.tfvars
file. Please keep the list sorted alphabetically.members = [ # ... "new_user" ]
-
Review the failing invitations, remove members that are in the failing invitations list from the
terraform/production/org.tfvars
. -
If they requested to be on specific repository team(s), in the
terraform/production/repositories.tfvars
file, add them to themembers
collection. Please keep the list sorted alphabetically.repositories = { "[REPOSITORY]" = { # ... members = [ # ... "new_user" ] } }
If there are extra users added in the PR when there shouldn't be, it's possible a user deleted their GitHub account. Check to see if that new user has a GitHub account and confirm they had issued a previous request to join Django Commons. Users who haven't accepted the Code of Conduct should not be invited.
-
Create a pull-request to
main
branch. This will trigger terraform to plan the changes in the organization to be executed. Review the changes and make sure they align with the request. -
Merge the pull request. This will trigger terraform to apply the changes in the organization.
-
Comment on the issue, thanking the person for joining and reminding them that it helps the organization's reach if they set their membership visibility as public.
Thank you for joining! You'll get an invite email from GitHub. You'll have one week to accept that. If you don't mind, after accepting, can you set your organization membership as public? This helps Django Commons grow.
- If they are not a real human or not reasonably trustworthy, close the issue, asking for more information if they are a human and not a spambot. You can explain that by being a member, they can impact repositories immediately.
- For the requested repository's team(s), in
the
terraform/production/repositories.tfvars
file, add them to themembers
collection. Please keep the list sorted alphabetically.repositories = { "[REPOSITORY]" = { # ... members = [ # ... "new_user" ] } }
- Create a pull-request to
main
branch. This will trigger terraform to plan the changes in the organization to be executed. Review the changes and make sure they align with the request. - Merge the pull request. This will trigger terraform to apply the changes in the organization.
- Confirm with all existing admins that they approve changes to the repository admins or committers.
- If there's disagreement, close the issue and ask for the admins to come to a consensus
- For the requested repository's team(s), in
the
terraform/production/repositories.tfvars
file, for the repository's key underrepositories
, add them to theadmins
collection for the correct team. There will be two privileged teams for each repository,*-admins
and*-committers
, the user should be added to the requested team. Please keep the list sorted alphabetically.repositories = { "[REPOSITORY]" = { # ... admins = [ # ... "new_user" ] } }
- Create a pull-request to
main
branch. This will trigger terraform to plan the changes in the organization to be executed. Review the changes and make sure they align with the request. - Merge the pull request. This will trigger terraform to apply the changes in the organization.
Goal: Publish a new release of the project from django-commons repo to PyPI and Test PyPI, using the release workflow.
Assuming the repository name is repo-name
:
"your-repo-here" = {
description = "Your project's description here"
allow_merge_commit = true # Allow merge commits on pull requests
allow_rebase_merge = true # Allow rebase and merge commits on pull requests
allow_squash_merge = true # Allow squash and merge commits on pull requests - Recommended
allow_update_branch = true # Allow updating source branch on pull requests
has_discussions = false # Enable discussions in project's repository
has_wiki = false # Enable wiki in project's repository
admins = [
# Include people who can release new versions
"your-username-here",
]
committers = [
# Include people who can commit to main / merge changes
]
members = [
# Include people who can assign/triage tickets
]
}
- Check if the repository meets inbound requirements.
- A PR to add the release workflow will be necessary. This can be done either by the repo owner OR the Django commons org admins, but should be done prior to the video call. The decision is up to the repo owner. The PR should NOT be merged before the video call.
- Confirm who will be the admins and maintainers for the repository
- Make sure the there are no teams
{repo-name}
,{repo-name}-admins
and{repo-name}-committers
in the Django Commons organization. Teams can be viewed here. The teams will be created by the terraform apply process. - Review with project-owner the newly created teams roles, as documented in the membership repository.
- Add repository owner to Django Commons as member (they'll be added to a team later)
These should be done by the project owner.
- Transfer the existing repository to the Django Commons organization using the GitHub UI, so old
information is preserved. See GitHub docs.
- It takes GitHub a couple minutes to process the move, therefore it is highly recommended to do this step first. This will ensure enough time can pass before moving to the 'import into terraform' step.
- (project owner) PyPI project owner must add the Django Commons PyPI Admins (
cunla
,stormheg
) as owners in PyPI, and test-pypi - Review with the project owner the PyPI and Test PyPI project maintainers - consider removing any inactive maintainers from the project.
- Terraform changes to add project to organization, should be included in the issue opened to transfer the project.
-
In
terraform/production/respositories.tfvars
, add the new repository to therepositories
section:repositories = { # ... "repo-name" = { description = "repo description" homepage_url = "" # optional, default is "" allow_auto_merge = false # optional, default is false allow_merge_commit = false # optional, default is false allow_rebase_merge = false # optional, default is false allow_squash_merge = true # optional, default is true allow_update_branch = true # optional, default is true delete_branch_on_merge = true # optional, default is true has_discussions = true # optional, default is true has_downloads = true # optional, default is true has_wiki = false # optional, default is false is_template = false # optional, default is false push_allowances = [] template = "" # optional, default is "" topics = [] visibility = "public" # optional, default is "public" is_django_commons_repo = optional(bool, false) # Do not create teams for repository required_status_checks_contexts = [] # optional, default is [] admins = [] # Members of the repository's admin and repository teams. Have admin permissions committers = [] # Members of the repository's committers and repository teams. Have write permissions members = [] # Members of the repository team. Have triage permissions } }
-
Create a pull-request to
main
branch. This will trigger terraform to plan the changes in the organization to be executed. Review the changes and make sure they align with the project maintainer expectations. -
Merge the pull request. This will trigger terraform to apply the changes in the organization.
-
The expected changes:
- New teams
repo-name
,repo-name-admins
,repo-name-committers
with the relevant members based on the repository's description. - The repository changes are accepted by the project maintainers.
- Repository has two environments:
pypi
andtestpypi
, see example here
- New teams
-
-
Repo changes:
- (project owner) Merge pull-request implementing the release workflow (created in the pre-transfer steps).
- Under Actions > General > "Fork pull request workflows from outside collaborators", set "Require approval for first-time contributors"
-
PyPI and Test PyPI changes:
- Add the release workflow to pypi.org's package publishing (and test.pypi.org's package publishing). Example can be found here
- Have the maintainer push a new tag and walk them through the release process
- Find the publishing workflow in the Actions tab (Usually
Publish Python ๐ distribution ๐ฆ to PyPI
/release.yml
) - The publishing to pypi job should wait for an approval by a repository admin.
- Find the publishing workflow in the Actions tab (Usually
- Add project to Django Commons Project Checkins doc
- Set a calendar event or reminder for 30 days in the future to check in with the project maintainers to see if they need any help or have any questions.
- Confirm there's agreement amongst current project maintainers to move project out of Django Commons
- Add new Owner(s) to project in PyPI
- Transfer GitHub repo to new owner or Org
- Wait for repository to be transferred out.
- Remove all Django Commons members from PyPI project (except any that are staying on from step 2)
- (TODO: Determine how to handle transferring a PyPI project out of an organization)
- Remove the repository from the
repositories
section interraform/production/respositories.tfvars
- Create a pull-request to
main
branch. This will trigger terraform to plan the changes in the organization to be executed. Review the changes and make sure they align with the request. - Merge the pull request. This will trigger terraform to apply the changes in the organization.
The expected changes:
- The repository will be removed from the organization.
- The repository's teams will be removed from the organization.
- Review Django Commons Project Checkins doc
- Look for the project's GitHub discussion for checkins, if it doesn't exist create one
- Review any prior discussion, complete previous action items and prepare next discussion comment
- Create a new message, tagging the repository's team that is similar to:
Hi @REPOSITORY_TEAM! I wanted to take a moment and check in with you about how the transition to Django Commons has been. - Have you run into any friction having your project in Django Commons, if so, can you describe them? - Is there anything we can do to help your team or repo out? - Do you have any questions or concerns for us? If you'd like to chat with us privately, our email is django-commons-admin@googlegroups.com. Thanks!
- Update the Django Commons Project Checkins doc
- Follow-up on any responses from the discussion.