-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading assets to a release breaks the Repository object #779
Comments
Forgot to mention my env: Python 2.7.14 |
This is a known problem, see my PR #771 that will resolve this bug, it will be merged by the dev for next release |
Awesome Thanks 👍 |
Yes, will try to get #771 merged soon. |
Would love to see this merged. Running into the same problem. |
The workaround I use for this is pretty easy. Basically after every file upload, I just recreate the github, repo, and release instances. Here's the pseudocode (full code is in Satsuki):
|
Should be resolved now that #771 is merged? |
Yes
…________________________________
From: nurupo <notifications@github.com>
Sent: Monday, June 25, 2018 2:32:26 PM
To: PyGithub/PyGithub
Cc: Wan Liuyang; Comment
Subject: Re: [PyGithub/PyGithub] Uploading assets to a release breaks the Repository object (#779)
Should be resolved by #771<#771> being merged?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#779 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-CRnGC3DneR2a5__s9jFIwPiPraMrFks5uAIP6gaJpZM4Tt_wu>.
|
It should be fixed by #771 . Can you guys try the the master? I will probably cut a release soon. |
@sfdye on it |
@iliapolo Cool, will take a look. |
I am seeing some really strange behaviour after using the
GitRelease
object to upload an asset to a release.Case in point:
Exception:
Worth mentioning that its not just the
get_branch
that breaks, every single method that needs to fetch something from Github fails with this error.Also worth mentioning, is that sometimes, the exception is different:
This exception happens, when i add
repo.default_branch
(or i assume any property invocation that requires a REST call) just before i upload.Can someone shed some light? am i missing something here?
thanks
The text was updated successfully, but these errors were encountered: