feat(devops): GitHub Repository Model

ref: #693 #515
This commit is contained in:
2025-03-20 14:07:32 +09:30
parent 717bd1e221
commit 051995efca

View File

@ -0,0 +1,74 @@
from django.db import models
from devops.models.git_repository.base import GitRepository
class GitHubRepository(
GitRepository
):
"""GitHub Repository"""
class Meta(GitRepository.Meta):
verbose_name = 'GitHub Repository'
verbose_name_plural = 'GitHub Repositories'
wiki = models.BooleanField(
blank = False,
default = False,
help_text = 'Enable Wiki',
verbose_name = 'Wiki'
)
issues = models.BooleanField(
blank = False,
default = False,
help_text = 'Enable Issues',
verbose_name = 'Issues'
)
sponsorships = models.BooleanField(
blank = False,
default = False,
help_text = 'Enable Sponsorships',
verbose_name = 'Sponsorships'
)
preserve_this_repository = models.BooleanField(
blank = False,
default = False,
help_text = 'Enable Preservation of this repository',
verbose_name = 'Preserve This Repository'
)
discussions = models.BooleanField(
blank = False,
default = False,
help_text = 'Enable Discussions',
verbose_name = 'Discussions'
)
projects = models.BooleanField(
blank = False,
default = False,
help_text = 'Enable Projects',
verbose_name = 'Projects'
)
documentation = ''
# page_layout: dict = []
# table_fields: list = [
# 'name',
# 'provider',
# 'path',
# 'organization',
# 'created',
# ]