summaryrefslogtreecommitdiff
path: root/app/models/external_issue.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix issues mentioned but not closed for JIRASean McGivern2017-03-061-0/+5
| | | | | | | 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#-`.
* Enable Performance/RedundantMatchDouwe Maan2017-02-231-1/+1
|
* Fix cross-project references copy to include the project referencefix/cross-project-ref-pathJames Lopez2017-01-031-1/+1
| | | | Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
* Add the method ExternalIssue#project_idYorick Peterse2016-11-071-0/+9
| | | | | 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-5/+0
|
* Merge branch 'master' into number_sign_for_external_issue_refBaldinoF2016-04-171-1/+1
|\
| * Memoize reference_pattern/link_reference_patternmemoize-pattern-methodsYorick Peterse2016-04-011-1/+1
| | | | | | | | | | These methods are called quite often in loops so by memoizing their output we can reduce timings a bit.
* | Hide number sign for string prefixed external issuesBaldinof2016-04-121-5/+3
| |
* | Add number sign on external issue reference textBaldinof2016-03-221-0/+8
|/
* Update ExternalIssue regex for JIRA integrationBlake Hitchcock2016-01-261-1/+1
| | | | | | | | | | | | | 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.
* Add `reference_pattern` to Referable modelsRobert Speicher2015-05-261-4/+9
|
* Add `to_reference` for models that support referencesRobert Speicher2015-05-261-0/+6
| | | | | Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
* Remove title_for_issue helperRobert Speicher2015-04-301-0/+4
|
* Add ExternalIssue base model to make issue referencing more robust for ↵Marin Jankovski2015-02-111-0/+25
external issue trackers.