-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG]: Octokit.net cannot handle mannequin users #2687
Comments
Hey @asklar, thanks for reaching out. You are correct; the enterprise importer uses them as placeholders. They do exist as enums (mostly) in the GitHub OpenAPI specification and therefore are valid values that can be passed into and out of our SDK - Octokit.net simply doesn't have this value implemented yet. This is because this particular SDK is hand built (we are working on generative solutions for it though). Let me know if this is something that you'd be interested in adding to whichever endpoint/model you are using. I'll also add the up for grabs label to let the community know that they can pick it up as well. |
thanks @nickfloyd - I'm building an app that uses octokit.net, call some API to fetch some details about a repo that the user asks for, and it just so happens they provided the python repo. There seems like there isn't much from the app's perspective that we can do to ignore/skip issues that have a mannequin user in them, it just fails the whole operation :-/ |
* Added Mannequin account type for migrated repos Fix issue #2687 * Update AccountType.cs * Added information about mannequin account type
thanks @kfcampbell !! 🥳 |
What happened?
A long time ago, Python had its own bug database/git repository called BPO. Then they migrated to github. As part of the migration, they decided to not migrate their users and instead create "mannequin" accounts. Somehow this became a feature in GitHub: What on Earth is a “mannequin”?
We have a tool that uses octokit.net and looks through PRs/Issues. Our tool found a PR in the python/cpython repo, which was created by one of these mannequin accounts:
python/cpython#50246
Octokit.net does not know how to deal with these as they don't represent real users.
Versions
octokit.net 5.0.0
Relevant log output
![image](https://user-images.githubusercontent.com/22989529/226470814-1aa36bc6-7725-4c1d-bce6-4d4003c27918.png)
Code of Conduct
The text was updated successfully, but these errors were encountered: