INNER CODE UNIT · Python

main

ixray-team/ixray-1.6-stcop · util/changelog_builder.py:50

def main():
    git_path = os.getcwd()
    print("Current directory:", git_path)

    repo = git.Repo(git_path)
    print("Current branch:", repo.active_branch)

    start_hash = get_last_tag_hash(repo)
    end_hash = 'HEAD'

    commit_data = get_commit_data(repo, start_hash, end_hash)
    output_file_path = 'changelog.txt'
    with open(output_file_path, 'w', encoding='utf-8') as output_file:
        for commit in commit_data:
            print(format_commit(commit))
            output_file.write(format_commit(commit) + '\n')

    print(f"Changelog has been written to {output_file_path}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…