-
Merge branch '24779-last-deployment-call-on-nil-environment-fix' into 'master' · 8b694ae8Kamil Trzciński authored
changes environment.last_deployment to a try expression so it does not fail if e… ## What does this MR do? Fixes the call on `environment.last_deployment` to not break when `environment`is not yet set. ## Does this MR meet the acceptance criteria? - [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? Closes #24779 See merge request !7671
8b694ae8
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
builds | Loading commit data... | |
commit | Loading commit data... | |
issues | Loading commit data... | |
merge_requests | Loading commit data... | |
notes | Loading commit data... | |
pipelines | Loading commit data... | |
tree | Loading commit data... | |
edit.html.haml_spec.rb | Loading commit data... |