-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Transfer Issues to Other Repositories #2363
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Left a couple of notes. The primary item I would like to see addressed is parsing response JSON intro structs instead to an interface{}
and having to do type assertions to read data. Let me know if that makes sense
This also needs tests in order to have CI passing again. You can find existing tests in |
Thanks for the feedback! I implemented the method for unmarshalling that you suggested and the code looks much cleaner now without type assertions. I haven't tried writing any tests yet, so I will try that (hopefully during the weekend). |
I put variables in their own parameter, but I haven't written any tests. I looked at |
@srafi1 Great work; thank you! I've also added some cleanups and tests. One thing that only ocurred to me after I took over your branch was that the first 2 GraphQL queries can be performed in a single request (rather than over 2 requests), so I've implemented that. I've also added a specialized |
Implements transferring issues to other repositories as requested in issue #2252. This feature differs from the feature request in one way: the user only specifies TARGET_REPO rather than USER/TARGET_REPO. This is because users cannot move issues between different users or organizations according to this guide.
Format:
Example: