summaryrefslogtreecommitdiff
path: root/spec/models/external_issue_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-191-0/+1
|
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-011-0/+2
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-271-1/+1
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix issues mentioned but not closed for JIRASean McGivern2017-03-061-0/+8
| | | | | | | The `ReferenceExtractor` would return an array of `ExternalIssue` objects, and then perform `Array#-` to remove the issues closed. `ExternalIssue`s had `==` defined, but not `hash` or `eql?`, which are used by `Array#-`.
* Add the method ExternalIssue#project_idYorick Peterse2016-11-071-1/+7
| | | | | This method returns the project's ID, making ExternalIssue slightly more compatible with Issue (which also defines the "project_id" method).
* Prevent wrong markdown on issue ids when project has Jira service activatedissue_828Felipe Artur2016-10-191-15/+0
|
* Hide number sign for string prefixed external issuesBaldinof2016-04-121-2/+11
|
* Add number sign on external issue reference textBaldinof2016-03-221-0/+6
|
* Update ExternalIssue regex for JIRA integrationBlake Hitchcock2016-01-261-0/+15
| | | | | | | | | | | | | 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.
* Tag model specsDouwe Maan2015-12-091-1/+1
|
* Add `to_reference` for models that support referencesRobert Speicher2015-05-261-0/+24
Now there is a single source of information for which attribute a model uses to be referenced, and its special character.