Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure team and enterprise ids are set on requests #258
Seems that Requests are responsible for updating their contexts, but only some of them were updating the enterprise and team ids. This is an issue since MultiTeamsAuthorization is expecting these fields in order to find the right bot user.
This goes through all the request types that seem to have access to team id and ensures that it (and it's undocumented buddy enterprise id, if available) are always added to the request context.