feat(devops): Add git_repository as a model that can be linked to a ticket
ref: #693 #515
This commit is contained in:
@ -161,6 +161,14 @@ For this command to process the following conditions must be met:
|
||||
|
||||
item_type = TicketLinkedItem.Modules.FEATURE_FLAG
|
||||
|
||||
elif model_type == 'git_repository':
|
||||
|
||||
from devops.models.git_repository.base import GitRepository
|
||||
|
||||
model = GitRepository
|
||||
|
||||
item_type = TicketLinkedItem.Modules.GIT_REPOSITORY
|
||||
|
||||
elif model_type == 'kb':
|
||||
|
||||
from assistance.models.knowledge_base import KnowledgeBase
|
||||
|
@ -52,6 +52,7 @@ class TicketLinkedItem(TenancyObject):
|
||||
TICKET_CATEGORY = 12, 'Ticket Category'
|
||||
TICKET_COMMENT_CATEGORY = 13, 'Ticket Comment Category'
|
||||
PROJECT_STATE = 14, 'Project State'
|
||||
GIT_REPOSITORY = 15, 'Git Repository'
|
||||
|
||||
|
||||
is_global = None
|
||||
|
Reference in New Issue
Block a user