You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all thank you so much for this incredible library!
I tried to sync my repos default branches with upstream using Branch.sync_with_upstream, but it failed with github3.exceptions.ForbiddenError: 403 Resource not accessible by personal access token.
Comparing the data sent by github3.py with the curl example in the GH API docs, it seems like we are missing the content added by that command's -d '{"branch":"main"}'.
I'll submit a PR to fix this, but wanted to file this issue so you can mention it if another solution is deemed more appropriate.
Edited to add (from template that was only shown at new PR creation):
Version Information
Python: 3.12. 7
pip: 24.2
github3.py: 4.0.1, also git at 3b31f12
requests: 2.32.3
uritemplate: 4.1.1
python-dateutil: 2.9.0.post0
Hello, first of all thank you so much for this incredible library!
I tried to sync my repos default branches with upstream using
Branch.sync_with_upstream
, but it failed withgithub3.exceptions.ForbiddenError: 403 Resource not accessible by personal access token
.Comparing the data sent by github3.py with the curl example in the GH API docs, it seems like we are missing the content added by that command's
-d '{"branch":"main"}'
.I'll submit a PR to fix this, but wanted to file this issue so you can mention it if another solution is deemed more appropriate.
Edited to add (from template that was only shown at new PR creation):
Version Information
Python: 3.12. 7
pip: 24.2
github3.py: 4.0.1, also git at 3b31f12
requests: 2.32.3
uritemplate: 4.1.1
python-dateutil: 2.9.0.post0
Minimum Reproducible Example
Exception information
Syncing doesn't work, but it does if we send
'{"branch":"NAME_OF_BRANCH"}'
in the request.The text was updated successfully, but these errors were encountered: