diff options
author | Sean McGivern <sean@gitlab.com> | 2019-07-25 11:18:00 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-07-25 11:18:00 +0000 |
commit | 2dd33c0812a0935184d51d9b0f012b87a39904e3 (patch) | |
tree | 6f55c79b1dbc5f95aed343f161d0082a6c90267b /lib | |
parent | cb41470cddf890ce85f23751f2326ea50ea9b79f (diff) | |
parent | d19717cba65ef3ae6f76ec25140ab5c255b27d42 (diff) | |
download | gitlab-ce-2dd33c0812a0935184d51d9b0f012b87a39904e3.tar.gz |
Merge branch '9643-jira-api-serializer-ce' into 'master'
[CE] Create serializer for Jira API JSON payload
See merge request gitlab-org/gitlab-ce!31139
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/regex.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index e43147a3f37..21614ea003e 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -94,6 +94,12 @@ module Gitlab }mx end + # Based on Jira's project key format + # https://confluence.atlassian.com/adminjiraserver073/changing-the-project-key-format-861253229.html + def jira_issue_key_regex + @jira_issue_key_regex ||= /[A-Z][A-Z_0-9]+-\d+/ + end + def jira_transition_id_regex @jira_transition_id_regex ||= /\d+/ end |