-
- Downloads
Fix API not accepting job_events for webhooks
When renaming, the argument on the projects hook API was forgotten. Now one could successfully set it again. The fix is a little ugly stylewise, but needed as the underlying model still refers to it as build_events. This commit is to fix it, later we should migrate the data to a new column. The edit on the spec file makes sure it passes now, and will fail when we migrate the column.
Showing
- app/controllers/projects/hooks_controller.rb 2 additions, 2 deletionsapp/controllers/projects/hooks_controller.rb
- changelogs/unreleased/zj-api-fix-build-events.yml 4 additions, 0 deletionschangelogs/unreleased/zj-api-fix-build-events.yml
- lib/api/project_hooks.rb 9 additions, 3 deletionslib/api/project_hooks.rb
- spec/requests/api/project_hooks_spec.rb 9 additions, 4 deletionsspec/requests/api/project_hooks_spec.rb
Please register or sign in to comment