dashboard tab 추가
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user