mike cullerton 070c3cfd5d *** WIP ***
New API endpoints, and associated methods.
Services for the new endpoints
Minimal test
2022-02-01 10:49:35 -05:00

33 lines
640 B
Python

from crc.models.git_models import GitRepoSchema
from crc.services.git_service import GitService
def get_repo():
repo_model = GitService().get_repo()
return GitRepoSchema().dump(repo_model)
def pull_from_remote():
return GitService().pull_from_remote()
def push_to_remote(comment=None):
return GitService().push_to_remote(comment)
def merge_with_branch(branch):
repo_model = GitService().merge_with_branch(branch)
return GitRepoSchema().dump(repo_model)
# def get_local_status():
# return GitService().get_local_status()
# def set_repo_branch():
# pass
#
#
# def commit_repo_changes():
# pass