github-org-manager 0.5.5__tar.gz → 0.5.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/PKG-INFO +1 -1
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/gh_org_mgr/_gh_org.py +19 -1
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/pyproject.toml +1 -1
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/LICENSE.txt +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/LICENSES/Apache-2.0.txt +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/LICENSES/CC-BY-4.0.txt +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/LICENSES/CC0-1.0.txt +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/LICENSES/MIT.txt +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/README.md +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/gh_org_mgr/__init__.py +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/gh_org_mgr/_config.py +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/gh_org_mgr/_gh_api.py +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/gh_org_mgr/_setup_team.py +0 -0
- {github_org_manager-0.5.5 → github_org_manager-0.5.6}/gh_org_mgr/manage.py +0 -0
|
@@ -708,7 +708,25 @@ class GHorg: # pylint: disable=too-many-instance-attributes, too-many-lines
|
|
|
708
708
|
continue
|
|
709
709
|
|
|
710
710
|
# Convert team name to Team object
|
|
711
|
-
|
|
711
|
+
try:
|
|
712
|
+
team = self.org.get_team_by_slug(self._sluggify_teamname(team_name))
|
|
713
|
+
# Team not found, probably because a new team should be created, but it's a dry-run
|
|
714
|
+
except UnknownObjectException:
|
|
715
|
+
logging.debug(
|
|
716
|
+
"Team %s not found, probably because it should be created but it's a dry-run",
|
|
717
|
+
team_name,
|
|
718
|
+
)
|
|
719
|
+
# Initialise a new Team() object with the name, manually
|
|
720
|
+
team = Team(
|
|
721
|
+
requester=None, # type: ignore
|
|
722
|
+
headers={}, # No headers required
|
|
723
|
+
attributes={
|
|
724
|
+
"id": 0,
|
|
725
|
+
"name": team_name,
|
|
726
|
+
"slug": self._sluggify_teamname(team_name),
|
|
727
|
+
},
|
|
728
|
+
completed=True, # Mark as fully initialized
|
|
729
|
+
)
|
|
712
730
|
|
|
713
731
|
# Get configured repo permissions
|
|
714
732
|
for repo, perm in team_attrs.get("repos", {}).items():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|