Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bas-kirill/448fa5479b62a0b1516435264c7282cb to your computer and use it in GitHub Desktop.
Save bas-kirill/448fa5479b62a0b1516435264c7282cb to your computer and use it in GitHub Desktop.
Run
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