Set current organization when adding new deploy keys
What does this MR do and why?
Sets the current organization when adding new deploy keys (via API or UI).
References
How to set up and validate locally
- Go to Admin -> Deploy keys and add a new deploy key. In the Rails console, verify the organization was set correctly (
DeployKey.last.organization
). - Go to any project's Settings -> Repository -> Deploy keys and perform the same check.
- Perform the same check after creating a key via the project and admin deploy key APIs.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Tiger Watson