Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorash wilson <smashwilson@gmail.com>2013-05-31 03:16:49 +0400
committerAsh Wilson <smashwilson@gmail.com>2013-08-26 02:58:41 +0400
commitc8a115c0e3a9c8242c2a422572d47a49e0cb2874 (patch)
tree5a36c3e0f364fdfb710e01090fc81b9676ea53c4 /spec/support/login_helpers.rb
parent2b36dee64485062c69779217d4a202e5ca1b67bd (diff)
Link issues from comments and automatically close them
Any mention of Issues, MergeRequests, or Commits via GitLab-flavored markdown references in descriptions, titles, or attached Notes creates a back-reference Note that links to the original referencer. Furthermore, pushing commits with commit messages that match a (configurable) regexp to a project's default branch will close any issues mentioned by GFM in the matched closing phrase. If accepting a merge request would close any Issues in this way, a banner is appended to the merge request's main panel to indicate this.
Diffstat (limited to 'spec/support/login_helpers.rb')
-rw-r--r--spec/support/login_helpers.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb
index 46794f48384..025534a900d 100644
--- a/spec/support/login_helpers.rb
+++ b/spec/support/login_helpers.rb
@@ -18,6 +18,7 @@ module LoginHelpers
fill_in "user_login", with: user.email
fill_in "user_password", with: "123456"
click_button "Sign in"
+ Thread.current[:current_user] = user
end
def logout