This repository was archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Pull private repos for any accessible owner. #15
Open
robwilkerson
wants to merge
19
commits into
Sheeprider:master
Choose a base branch
from
robwilkerson:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sometimes you need to pull data from repos that arne't owned by you, but rather by a team that you belong to.
This change uses the response.content value rather than response.text because binary content is corrupted when writing the text to the zip file during an archive operation.
|
This is exactly what I wanted to fix now. Please merge! |
Author
|
@fala I don't know when/if this will ever get merged, but I have a fork that you can install in the interim, if you're desperate: This is what I had to do to get it working for me while I wait on feedback on the PR. |
This is follow up to commit 462c1be, solving the problem in the issue.py file.
|
Actually I need mostly issue.py file - so I've fixed it in the same manner. There it goes in the pull request, so you can patch your solution so it covers that file as well. |
Thanks, @fala. I appreciate it.
… team that user is signed up with
…l of issue and issue comment wrappers
issue_comment from issues for any accessible owner.
…er has access via teams (public or private)
Adding `Repository.team()` method. Returns repositories to which the user has access via teams (public or private). Thanks, @reece.
Adds some v2 functionality around Pull Requests. Thanks, @iashwash.
Get diff of a pull request.
Adding creation of repos through team with api v2.
This ended up going to the v2 URL for old scripts that weren't ready for that.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses issue #14.
Sometimes you need to pull data from repos that aren't owned by you, but rather by a team that you belong to. This pull request allows an owner/username to be passed to several APIs and the API will do its thing as long as the authenticated user has access to the requested repository.
I didn't add anything to the tests, but I did run them and everything still seems okay.