Created
April 7, 2025 17:24
-
-
Save bas-kirill/448fa5479b62a0b1516435264c7282cb to your computer and use it in GitHub Desktop.
Run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
try: | |
checker = CompareChangesLib( | |
owner="your-github-owner", | |
repo="your-repo", | |
access_token="ghp_xxx", | |
local_repo_path=".", | |
branch_a="origin/main", | |
branch_b="my-feature-branch" | |
) | |
changed_files = checker.get_files_changed_in_both_branches() | |
print("Файлы, которые изменены и в remote branchA, и в локальной branchB:") | |
for f in changed_files: | |
print(" " + f) | |
except CompareChangesError as e: | |
print("Ошибка:", e) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment