gitlab-org--gitlab-foss/app/services/merge_requests
Sean McGivern b2f60bb9a1 Fix auto-MR-close text from branch name
Rails's form helpers use the `$attr_before_type_cast` method where
available, and this value only appears to be updated on assignment, not
when the object is mutated in some other way:

    [1] pry(main)> mr = MergeRequest.new
    => #<MergeRequest:0x007fcf28395d88 ...>
    [2] pry(main)> mr.description = 'foo'
    => "foo"
    [3] pry(main)> mr.description << ' bar'
    => "foo bar"
    [4] pry(main)> mr.description
    => "foo bar"
    [5] pry(main)> mr.description_before_type_cast
    => "foo"
    [6] pry(main)> mr.description += ' bar'
    => "foo bar bar"
    [7] pry(main)> mr.description_before_type_cast
    => "foo bar bar"
2016-06-21 17:59:20 +01:00
..
add_todo_when_build_fails_service.rb Create a todo on failing MR build 2016-05-17 10:17:45 +01:00
base_service.rb Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipeline 2016-06-02 16:59:04 +02:00
build_service.rb Fix auto-MR-close text from branch name 2016-06-21 17:59:20 +01:00
close_service.rb Rename Tasks to Todos 2016-02-20 12:39:27 -02:00
create_service.rb Allows MR authors to have the source branch removed when merging the MR 2016-05-20 11:30:03 +02:00
merge_service.rb Allows MR authors to have the source branch removed when merging the MR 2016-05-20 11:30:03 +02:00
merge_when_build_succeeds_service.rb Rename all ci_commit[s] in application code to pipeline[s] 2016-06-03 16:27:50 +02:00
post_merge_service.rb Update methods that use issue close service 2016-03-17 09:54:16 +01:00
refresh_service.rb Create a todo on failing MR build 2016-05-17 10:17:45 +01:00
reopen_service.rb Organize event order execution when update issue or mr 2015-01-25 22:49:05 -08:00
update_service.rb Allows MR authors to have the source branch removed when merging the MR 2016-05-20 11:30:03 +02:00