-
- Downloads
Merge branch 'fix/error-when-invalid-branch-for-new-pipeline-used' into 'master'
Fix error when using invalid branch name when creating a new pipeline ## What does this MR do? This MR fixes `500` error when creating a new pipeline though user interface ("Run pipeline") ## Are there points in the code the reviewer needs to double check? Is this a good approach to catch those exceptions on `Repository` level? ## Does this MR meet the acceptance criteria? - [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - Tests - [x] Added for this feature/bug ## What are the relevant issue numbers? Closes #23982 See merge request !7324
No related branches found
No related tags found
Showing
- app/controllers/projects/pipelines_controller.rb 3 additions, 1 deletionapp/controllers/projects/pipelines_controller.rb
- app/models/repository.rb 6 additions, 6 deletionsapp/models/repository.rb
- changelogs/unreleased/fix-error-when-invalid-branch-for-new-pipeline-used.yml 4 additions, 0 deletions...d/fix-error-when-invalid-branch-for-new-pipeline-used.yml
- spec/models/repository_spec.rb 49 additions, 0 deletionsspec/models/repository_spec.rb
Please register or sign in to comment