GitLab Bot
5460c19548
Add latest changes from gitlab-org/gitlab@master
2020-10-05 12:08:47 +00:00
GitLab Bot
c59765a50a
Add latest changes from gitlab-org/gitlab@master
2020-06-24 18:09:03 +00:00
GitLab Bot
eaea945e03
Add latest changes from gitlab-org/gitlab@master
2020-04-06 09:09:17 +00:00
GitLab Bot
2b3bfe8fc5
Add latest changes from gitlab-org/gitlab@master
2020-01-08 00:07:43 +00:00
Thong Kuah
f540ffcef6
Add frozen_string_literal to spec/lib (part 1)
...
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:25:07 +12:00
Samuele Kaplun
c6cfc369db
Fix closing issue default pattern
...
* (Suf)fix #51085 :-)
Signed-off-by: Samuele Kaplun <kaplun@protonmail.com>
2018-09-06 16:00:12 +02:00
Rémy Coutable
a73f480715
Merge branch 'update-issue-closing-pattern' into 'master'
...
Update issue closing pattern
Closes #49166
See merge request gitlab-org/gitlab-ce!20554
2018-07-16 14:46:39 +00:00
Mark Chao
a63bce1a4b
Resolve "Rename the `Master` role to `Maintainer`" Backend
2018-07-11 14:36:08 +00:00
George Tsiolis
69f9c91161
Add tests for non-comma-separated issue numbers in single line message
2018-07-11 16:28:53 +03:00
Vicky Chijwani
50cdf41e7e
Allow oxford commas and spaces before commas in MR issue closing pattern.
2018-02-17 22:46:07 +05:30
Douwe Maan
8d69436c90
Validate user namespace before saving so that errors persist on model
2018-02-06 12:06:05 -06:00
blackst0ne
27c95364b5
Replace '.team << [user, role]' with 'add_role(user)' in specs
2017-12-22 19:18:28 +11:00
Guilherme Vieira
4e4a29ad75
Add "implements" to the default issue closing message regex
2017-10-02 12:02:38 +00:00
Douwe Maan
a3d5c82f53
Correctly detect multiple issue URLs after 'Closes...' in MR descriptions
2017-09-21 12:42:25 +02:00
Robert Speicher
72a7b30c9f
Change all `:empty_project` to `:project`
2017-08-02 17:47:31 -04:00
Rémy Coutable
ddccd24c13
Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Douwe Maan
fe13f11041
Create and use project path helpers that only need a project, no namespace
2017-07-05 11:11:59 -05:00
Grzegorz Bizon
0430b76441
Enable Style/DotPosition Rubocop 👮
2017-06-21 13:48:12 +00:00
Robert Speicher
80a6d2fda2
Use `:empty_project` where possible throughout spec/lib
2017-01-25 12:25:42 -05:00
Douwe Maan
bf061d0aff
Merge branch 'issue_23548_dev' into 'master'
...
disable markdown in comments when referencing disabled features
fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23548
This MR prevents the following references when tool is disabled:
- issues
- snippets
- commits - when repo is disabled
- commit range - when repo is disabled
- milestones
This MR does not prevent references to repository files, since they are just markdown links and don't leak
information.
See merge request !2011
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-09 12:25:17 +01:00
Paco Guzman
fa54a8e984
Don’t close issues on original project from a fork
...
Signed-off-by: Paco Guzman <pacoguzmanp@gmail.com>
2016-08-04 12:38:08 +02:00
Jacob Schatz
0bbeebc8f9
Remove dumb debug statement and add many tests.
2016-04-07 08:47:29 -04:00
Yorick Peterse
84b0ab7766
Added & use Gitlab::Routing for URL helpers
...
Rails' "url_helpers" method creates an anonymous Module (which a bunch
of methods) on every call. By caching the output of this method in a
dedicated method we can shave off about 10 seconds of loading time for
an issue with around 200 comments.
2016-04-01 11:13:48 +02:00
Douglas Barbosa Alexandre
43d8bdb4f0
Restrict access to references for confidential issues
2016-03-17 20:55:59 -03:00
Blake Hitchcock
4be65c3231
Update ExternalIssue regex for JIRA integration
...
The pattern in the `::reference_pattern` class method in the
ExternalIssue model does not match all valid forms of JIRA project
names. I have updated the regex to match JIRA project names with numbers
and underscores. More information on valid JIRA project names can be
found here:
https://confluence.atlassian.com/jira/changing-the-project-key-format-192534.html
* The first character must be a letter,
* All letters used in the project key must be from the Modern Roman Alphabet and upper case, and
* Only letters, numbers or the underscore character can be used.
2016-01-26 15:55:40 -05:00
Douwe Maan
13d6bab177
Tag lib specs
2015-12-09 11:55:42 +01:00
Douwe Maan
f905fd239c
Use URL helpers in specs
2015-12-03 14:00:09 +01:00
Douwe Maan
044e0e33dc
Allow invalid URLs in closing pattern
2015-12-02 18:48:39 +01:00
Douwe Maan
61d8f96176
Fix specs
2015-10-14 13:46:17 +02:00
Robert Speicher
2c1bf71793
Fix ClosingIssueExtractor specs
2015-05-26 15:55:26 -04:00
Robert Speicher
5a9c5520d9
Make use of to_reference in more specs
2015-05-26 15:49:22 -04:00
Douwe Maan
16e1076e6f
Update tests.
2015-04-03 18:03:34 +02:00
Jeroen van Baarsen
0c4a70a306
Updated rspec to rspec 3.x syntax
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12 19:17:35 +01:00
Douwe Maan
fd21d72b1b
Extend issue closing pattern.
2015-02-08 13:56:12 +01:00
jubianchi
b21a2d821a
Allow commit messages to close several issues at once (thanks @123Haynes
...
for his work and help)
2015-01-20 10:45:48 +01:00