Read about our upcoming Code of Conduct on this issue

  1. 23 Oct, 2019 1 commit
  2. 18 Sep, 2019 1 commit
  3. 13 Sep, 2019 1 commit
  4. 10 Sep, 2019 1 commit
  5. 04 Sep, 2019 1 commit
    • Christian Couder's avatar
      Support adding and removing labels w/ push opts · edf04791c81f
      Christian Couder authored
      MergeRequests::PushOptionsHandlerService has been updated to allow
      adding and removing labels to a merge request using git push options.
      
      To create a new merge request and add 2 labels to it:
      
            git push -u origin -o merge_request.create \
              -o merge_request.label="My label 1" \
              -o merge_request.label="My label 2"
      
      To update an existing merge request and remove a label while
      adding a different label:
      
            git push -u origin -o merge_request.label="My added label" \
              -o merge_request.unlabel="My removed label"
      
      Issue https://gitlab.com/gitlab-org/gitlab-ce/issues/64320
      edf04791c81f
  6. 17 Jul, 2019 1 commit
    • Bob Van Landuyt's avatar
      Filter params in MR build service · 9de06750c325
      Bob Van Landuyt authored
      Reusing the existing `IssuableBaseService#filter_params` which uses
      the policies to determine what params a user can set, and which values
      it can be set to.
      
      This also removed the need for the seperate call to
      `IssuableBaseService#ensure_milestone_available`.
      
      The `Issues::BuildService` does not suffer from this because it limits
      the params that are assignable to the `title`, `description` and
      `milestone_id`.
      9de06750c325
  7. 14 Feb, 2019 1 commit
    • Jarka Košanová's avatar
      Check issue milestone availability · 584f9629d80c
      Jarka Košanová authored
      Add project when creating milestone in specs
      
      We validate milestone is from the same
      project/parent group as issuable ->
      we need to set project in specs correctly
      
      Improve methods names and specs organization
      584f9629d80c
  8. 14 Dec, 2018 1 commit
    • Bob Van Landuyt's avatar
      Validate projects in MR build service · 8ff08c0edcd8
      Bob Van Landuyt authored
      This validates the correct abilities for both projects. Only
      `read_project` isn't enough:
      
      For the `source_project` we validate `create_merge_request_from` this
      also validates that the user has developer access to the project.
      
      For the `target_project` we validate `create_merge_reqeust_in` this
      also validates that the user has access to the project's repository.
      
      To avoid generating diffs for unrelated projects we also validate that
      the projects are in the same fork network now.
      8ff08c0edcd8
  9. 21 Nov, 2018 1 commit
  10. 07 Nov, 2018 2 commits
    • Bob Van Landuyt's avatar
      Allow limiting quick actions to execute · 8cf3a895d871
      Bob Van Landuyt authored
      Sometimes we don't want to trigger any quick actions that cause side
      effects. For example when building a record to validate. This allows
      listing the quick actions that need to be performed.
      8cf3a895d871
    • Bob Van Landuyt's avatar
      Apply patches when creating MR via email · 342c8a7b636a
      Bob Van Landuyt authored
      This allows users to add patches as attachments to merge request
      created via email.
      
      When an email to create a merge request is sent, all the attachments
      ending in `.patch` will be applied to the branch specified in the
      subject of the email. If the branch did not exist, it will be created
      from the HEAD of the repository.
      
      When the patches could not be applied, the error message will be
      replied to the user.
      
      The patches can have a maximum combined size of 2MB for now.
      342c8a7b636a
  11. 06 Sep, 2018 1 commit
  12. 25 Aug, 2018 3 commits
  13. 17 Jul, 2018 1 commit
  14. 07 Mar, 2018 1 commit
  15. 14 Feb, 2018 1 commit
  16. 13 Feb, 2018 1 commit
  17. 02 Feb, 2018 1 commit
  18. 10 Jan, 2018 1 commit
  19. 09 Jan, 2018 1 commit
  20. 05 Dec, 2017 1 commit
    • Jan Provaznik's avatar
      Create merge request from email · 5ff826b7636c
      Jan Provaznik authored
      * new merge request can be created by sending an email to the specific
      email address (similar to creating issues by email)
      * for the first iteration, source branch must be specified in the mail
      subject, other merge request parameters can not be set yet
      * user should enable "Receive notifications about your own activity" in
      user settings to receive a notification about created merge request
      
      Part of #32878
      5ff826b7636c
  21. 28 Nov, 2017 1 commit
    • Sean McGivern's avatar
      Ensure MRs always use branch refs for comparison · 0abebd33c0b3
      Sean McGivern authored
      If a merge request was created with a branch name that also matched a tag name,
      we'd generate a comparison to or from the tag respectively, rather than the
      branch. Merging would still use the branch, of course.
      
      To avoid this, ensure that when we get the branch heads, we prepend the
      reference prefix for branches, which will ensure that we generate the correct
      comparison.
      0abebd33c0b3
  22. 25 Nov, 2017 1 commit
  23. 16 Nov, 2017 1 commit
  24. 26 Apr, 2017 1 commit
  25. 06 Apr, 2017 1 commit
  26. 17 Mar, 2017 1 commit
  27. 21 Feb, 2017 1 commit
  28. 31 Jan, 2017 1 commit
    • Rydkin Maxim's avatar
      refactor merge request build service · 7198c841396e
      Rydkin Maxim authored
      add changelog entry
      
      replace local variables `merge_request` with instance ones
      
      modify `MergeRequests::BuildService` to fix failed tests
      
      extract `assign_target_project` method
      
      remove unnecessary instance variables
      
      remove exclamation marks and rewrite conditionals to improve readability
      
      extract `params_does_not_contain_branches?` method, rename `unprepared_merge_request` method to `uncreatable_merge_request`
      
      replace instance variables `merge_request` and `error_messages` with getters and setters; divide `set_title_and_description` method on two separate ones
      
      refactor `execute` method
      
      return `set_title_and_description` method
      
      rename `branches_selected?` method to `branches_present?` to make it more different from `branches_specified?`
      
      fixes after discussion
      
      renamed method branches_valid?
      
      fix space
      
      return assigning methods into `execute` method
      
      simplify `find_target_branch` and `find_source_project` methods
      
      fix spec `merge request issuable record that supports slash commands in its description and notes`
      7198c841396e
  29. 16 Dec, 2016 1 commit
  30. 08 Dec, 2016 1 commit
  31. 29 Nov, 2016 1 commit
  32. 19 Nov, 2016 1 commit
    • Alex Sanford's avatar
      Fix regression in Merge request form · 6d2650995284
      Alex Sanford authored
      Merge request !7163 caused an error message to appear on the Merge
      Request form when it was first loaded by the user. This commit fixes
      that regression bug.
      6d2650995284
  33. 01 Nov, 2016 1 commit
  34. 11 Oct, 2016 1 commit
  35. 01 Sep, 2016 1 commit
  36. 03 Aug, 2016 1 commit
  37. 21 Jun, 2016 1 commit
    • Sean McGivern's avatar
      Fix auto-MR-close text from branch name · 9c1300b775ba
      Sean McGivern authored
      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"
      9c1300b775ba