Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Added support for github redirects #37

Merged
merged 2 commits into from
Mar 15, 2017

Conversation

briansneddon
Copy link
Contributor

When github projects are moved and a redirect left behind authorization breaks because github library 0.2.4 doesn't support redirects and just returns the redirect object which has no permissions attribute (needed by subsequently called _handleGithubResponse.

The latest github library 3.1.1 does support redirects so the response for github.repos.get will include the permissions attribute.

Brian Sneddon added 2 commits October 4, 2016 10:09
Bumped github package version
Fixed method names that changed since the old github version
Moved enterprise-configurator to a dev dependency because it's not actually deployed in npme
but is needed to run tests
@bcoe
Copy link
Contributor

bcoe commented Oct 4, 2016

@briansneddon appreciate the patch 👍 we will get this merged and tested next time we rollout the npm Enterprise docker containers.

@nexdrew
Copy link
Contributor

nexdrew commented Nov 3, 2016

@briansneddon Apologies for the delay, I plan on taking a closer look at this tomorrow, hopefully getting it merged and released. (I think this fixes #27?) Thanks for contributing!

@marcellodesales
Copy link

We faced this problem today after a user renamed a Github repo and did not change the value repo.url package.

@bcoe bcoe merged commit ea71843 into npm:master Mar 15, 2017
@bcoe
Copy link
Contributor

bcoe commented Mar 15, 2017

@briansneddon thanks for the patch! sorry this took so long to land; will work on getting this out the door with a couple other authentication changes.

@briansneddon briansneddon deleted the feature/fix-github-redirects branch March 21, 2017 13:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants