Commit graph

14 commits

Author SHA1 Message Date
GitLab Bot
777572d30e Add latest changes from gitlab-org/gitlab@master 2021-06-04 03:10:08 +00:00
GitLab Bot
b794758ce4 Add latest changes from gitlab-org/gitlab@master 2021-05-20 09:10:30 +00:00
GitLab Bot
0ae8428c8e Add latest changes from gitlab-org/gitlab@master 2021-05-11 21:10:21 +00:00
GitLab Bot
1b2e02ede9 Add latest changes from gitlab-org/gitlab@master 2020-11-17 21:09:19 +00:00
GitLab Bot
ed7568cc80 Add latest changes from gitlab-org/gitlab@master 2020-10-16 09:09:06 +00:00
GitLab Bot
2f5c5b1081 Add latest changes from gitlab-org/gitlab@master 2020-10-08 12:08:31 +00:00
GitLab Bot
4e06ca9e7d Add latest changes from gitlab-org/gitlab@master 2020-09-02 18:10:40 +00:00
Eugenia Grieff
8684d67acc Add milestone and label note types to cross refs
- Include new types in SystemNoteMetadata
- Add Label and Milestone reference_pattern to
Mentionable::ReferenceRegexes to be checked for cross references
2019-10-23 19:22:11 +01:00
GitLab Bot
b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Yorick Peterse
9aa705dd38
Turn reference regex constants into methods
`Mentionable::ReferenceRegexes` used to define the following two
constants:

1. DEFAULT_PATTERN
2. EXTERNAL_PATTERN

These two constants were built using some of the class methods that
reside in this same module. In EE we redefine one of these methods by
using `prepend` at the start of the `ReferenceRegexes` module. This
poses a problem: we can not move the `prepend` to the end of the file,
because the constants later on depend on it.

To resolve this problem, this commit turns these constants into class
methods that memoize their results. This allows EE to redefine the
appropriate methods before these two class methods are used, in turn
allowing us to move the `prepend` to the end of the file.

See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8198 for more
information.
2018-11-12 13:50:31 +01:00
Sean McGivern
9357585eca Remove EE-specific code from Mentionable 2018-09-17 19:36:53 +08:00
gfyoung
15b878e27e Enable more frozen string in app/models/**/*.rb
Partially addresses #47424.
2018-08-07 00:37:36 -07:00
Adam Niedzielski
9da3076944 Improve support for external issue references 2017-06-30 14:47:53 +02:00
James Edwards-Jones
020295fffc Use regex to skip unnecessary reference processing in ProcessCommitWorker 2017-05-04 20:03:46 +01:00