74
app/devops/models/git_repository/github.py
Normal file
74
app/devops/models/git_repository/github.py
Normal 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',
|
||||
# ]
|
Reference in New Issue
Block a user