Skip to content

Commit cadcbf0

Browse files
committed
Fix wide scope
1 parent d116c8b commit cadcbf0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

entrypoint.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424

2525
# Fetch the repository object
2626
g = Github(github_token)
27-
# Split username/repository
28-
github_repository_parts = [l.strip() for l in github_repository.split('/')]
29-
repo = g.get_user().get_repo(github_repository_parts[1])
27+
repo = g.get_repo(github_repository)
3028
# Create the issue
3129
issue = repo.create_issue(issue_title, issue_content)
3230
print("Created issue %d" % (issue.number))

0 commit comments

Comments
 (0)