Skip to content

Commit

Permalink
fix: authenticated_user_in_users callsite
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed May 15, 2023
1 parent b829262 commit f5706d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v5.0.3 (2023-05-15)

- Fixes a syntax error that led to not being able to remove the authenticated user from the user's list so their git assets weren't included twice (fixes #55)

## v5.0.2 (2023-03-25)

- Overhauls subprocess error handling so output is no longer clobbered
Expand Down
5 changes: 2 additions & 3 deletions github_archive/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def run(self):
failed_repo_dirs = []

# Personal (includes personal authenticated items)
if self.token and self.authenticated_user_in_users and self.users:
if self.token and self.users and self.authenticated_user_in_users():
logger.info('# Making API call to GitHub for personal repos...')
personal_repos = self.get_all_git_assets(PERSONAL_CONTEXT)

Expand All @@ -122,8 +122,7 @@ def run(self):

# We remove the authenticated user from the list so that we don't double pull their
# repos for the `users` logic.
if self.authenticated_username:
self.users.remove(self.authenticated_username)
self.users.remove(self.authenticated_username)

# Users (can include personal non-authenticated items, excludes personal authenticated calls)
if self.users and len(self.users) > 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setuptools.setup(
name='github-archive',
version='5.0.2',
version='5.0.3',
description=(
'A powerful tool to concurrently clone, pull, or fork user and org repos and gists to create a GitHub archive.'
),
Expand Down

0 comments on commit f5706d4

Please sign in to comment.