Skip to content
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

gh-issues-import: support private repos #2

Closed
wants to merge 2 commits into from

Conversation

ddopson
Copy link

@ddopson ddopson commented Feb 8, 2013

For private repos we need auth on ALL requests, not just the ones that are writing data.

@tonikitoo
Copy link

I applied your patch , and it kinda of work, but not in an useful way:

I created test1 and test2 repos. The former had 3 issues logged (2 opened and 1 closed).

When I imported, it only managed to import to Test2 the "closed" issue, and still as "opened". Did I miss something?

@tonikitoo
Copy link

Oh, by reading the script, it seems that was intentional , given "state=closed".

@tonikitoo
Copy link

Ok, a nice feature would be supporting importing the issue state as well, so CLOSED get imported as CLOSED, and OPEN as OPEN.

@ddopson
Copy link
Author

ddopson commented Feb 22, 2013

oh, crap, I think I must have checked that in by mistake. Yeah, there should be an option to do BOTH closed and open. I think what happened is I ran it once, saw it only did open issues, and then ran it a second time changing the query to "state=closed". I must have added that change to my PR by mistake.

result = response.read()
labels = json.load(StringIO(result))
return labels

def get_issues(url):
response = urllib2.urlopen("%s/issues" % url)
response = request('get_issues', "%s/issues?state=closed" % url)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a bug. Didn't mean to change the query

@ddopson
Copy link
Author

ddopson commented Feb 23, 2013

I pushed a fix

@bavovna
Copy link
Collaborator

bavovna commented Nov 21, 2019

I feel terribly sorry for not responding that long. Closing in favor of https://github.com/IQAndreas/github-issues-import

@bavovna bavovna closed this Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants