-
Notifications
You must be signed in to change notification settings - Fork 144
Setting assignee who is not part of the organization fails #217
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
Comments
I can confirm this. In my case, the issue was not created at all despite everything else being correct. Furthermore, all other issues with assignees did not have their assignees set at all but this might be a different issue.
|
I fixed this in my fork for organizations but have no solution for regular users: mschoettle@0888ad4 |
@mschoettle Do you wann create a PR with the change mentioned with some code around it making sure it is an org. Then maybe logging the validation error with more explanation? |
When migrating merge requests/issues where the assignee is not part of the organization (anymore), updating the issue/PR fails with a validation error.
I propose to retrieve the current members of the organization at some point once at the beginning (let me know where the best place would be). Then in
convertAssignees
an additional check can ensure that the assignee still exists as a member.As an optional step could be to add the assignee to the issue body to have this still recorded.
An open issue is that if the owner is not an organization (but a regular user), is there an API with which members can be retrieved?
The text was updated successfully, but these errors were encountered: