-
Notifications
You must be signed in to change notification settings - Fork 42
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
does not work with personal access tokens #9
Comments
simevo
changed the title
does not woth with personal access tokens
does not work with personal access tokens
Aug 23, 2018
see https://developer.github.com/v3/#authentication the url = url + "&access_token=" + credentials['token'] PR ? |
simevo
pushed a commit
to simevo/git_mover
that referenced
this issue
Aug 23, 2018
TODO: - remove useless user_name CLI parameter - update README
My patch to make it work: 20c20,21
< r = requests.get(url=url, auth=(credentials['user_name'], credentials['token']), headers={'Content-type': 'application/json'})
---
> url = url + "&access_token=" + credentials['token']
> r = requests.get(url=url, headers={'Content-type': 'application/json'})
28c29,30
< r = requests.post(url=url, data=data, auth=(credentials['user_name'], credentials['token']), headers={'Content-type': 'application/json', 'Accept': 'application/vnd.github.v3.html+json'})
---
> url = url + "&access_token=" + credentials['token']
> r = requests.post(url=url, data=data, headers={'Content-type': 'application/json', 'Accept': 'application/vnd.github.v3.html+json'})
86c88
< url = destination_url+"repos/"+destination+"/milestones"
---
> url = destination_url+"repos/"+destination+"/milestones?"
136c138
< url = destination_url+"repos/"+destination+"/issues"
---
> url = destination_url+"repos/"+destination+"/issues?"
199c201
< destination_credentials = {'user_name': args.destinationUserName, 'token': args.destinationToken}
---
> destination_credentials = source_credentials |
This will stop working at some point though: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fails with 401
The text was updated successfully, but these errors were encountered: