Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.7.1 #101

Merged
merged 2 commits into from
Oct 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions QC.Ver/get_git_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ def get_input_args():
return parser.parse_args()


def main():
args = get_input_args()

repo = git.Repo(args.repo_path)
def get_tag_in_last_commit(repo):
try:
tags = repo.git.describe('--exact-match', 'HEAD')
tag_list = tags.split('\n')
Expand All @@ -31,4 +28,15 @@ def main():
return tag_list


def get_tags(repo):
return [tag.name for tag in repo.tags]


def main():
args = get_input_args()

repo = git.Repo(args.repo_path)

return get_tags(repo)

print(main())