feat(devops): Add git_repository as a model that can be linked to a ticket

ref: #693 #515
This commit is contained in:
2025-03-20 16:47:39 +09:30
parent e725efb9b7
commit 25e0f6d950
3 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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