diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-01 15:13:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-01 15:13:32 +0300 |
commit | 6c7d90ede4d2890b2ca740239cd9a5338f12ba34 (patch) | |
tree | 59a0fde813364a626fe201dc58316dee001f96e1 /lib/atlassian/jira_connect | |
parent | 3cb9e9a5070184e59cb6ff33a4ce381ed14a6fe5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/atlassian/jira_connect')
-rw-r--r-- | lib/atlassian/jira_connect/serializers/environment_entity.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/atlassian/jira_connect/serializers/environment_entity.rb b/lib/atlassian/jira_connect/serializers/environment_entity.rb index f3699e4d0ee..b6b5db40ba6 100644 --- a/lib/atlassian/jira_connect/serializers/environment_entity.rb +++ b/lib/atlassian/jira_connect/serializers/environment_entity.rb @@ -21,13 +21,13 @@ module Atlassian def type case environment.name - when /prod/i + when /\A(.*[^a-z0-9])?(staging|stage|stg|preprod|pre-prod|model|internal)([^a-z0-9].*)?\z/i + 'staging' + when /\A(.*[^a-z0-9])?(prod|production|prd|live)([^a-z0-9].*)?\z/i 'production' - when /test/i + when /\A(.*[^a-z0-9])?(test|testing|tests|tst|integration|integ|intg|int|acceptance|accept|acpt|qa|qc|control|quality)([^a-z0-9].*)?\z/i 'testing' - when /staging/i - 'staging' - when /(dev|review)/i + when /\A(.*[^a-z0-9])?(dev|review|development)([^a-z0-9].*)?\z/i 'development' else 'unmapped' |