dashboard tab 추가

This commit is contained in:
dsk-minchulahn
2023-08-11 17:28:53 +09:00
parent 281352a5cd
commit 91f5f4e7aa
2 changed files with 50 additions and 31 deletions

View File

@@ -18,6 +18,13 @@ def get_commit_id():
def get_tags():
return repo.tags
def get_github_releases():
api_url = 'https://api.github.com/repos/cloudmoa/dsk-version-management/releases'
github_token = os.environ.get('GITHUB_TOKEN')
headers = {'Authorization': f'Bearer {github_token}', 'Accept': 'application/vnd.github.v3+json'}
releases = requests.get(api_url, headers=headers).json()
return releases
def diff():
if len(repo.index.diff(repo.head.commit)) > 0:
return True