Skip to content

Commit 9f93ad3

Browse files
committed
Test
1 parent 6668bb7 commit 9f93ad3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def sync_website_content(username, token, source_repo, source_folder, source_ref
6262
run(['gh', 'pr', 'create', '--base', 'main', '--head', branch_name, '--title', pr_title, '--body', "Automated content update."])
6363
os.environ["GITHUB_TOKEN"] = github_token
6464
else:
65-
print("No changes to commit.")
65+
print("\n\nNo changes to commit.")
6666

6767
auth = Auth.Token(github_token)
6868
g = Github(auth=auth)
@@ -74,7 +74,7 @@ def sync_website_content(username, token, source_repo, source_folder, source_ref
7474
# print(pr.number, pr.title)
7575
pr_branch = pr.head.ref
7676
if pr.title == pr_title and pr_branch == branch_name:
77-
print('Found PR try to merge it!')
77+
print('\n\nFound PR try to merge it!')
7878

7979
# Check if commits are signed
8080
checks = []
@@ -83,13 +83,13 @@ def sync_website_content(username, token, source_repo, source_folder, source_ref
8383
checks.append(commit.commit.verification.verified and signed_by in commit.commit.verification.payload)
8484

8585
if all(checks):
86-
print('All commits are signed, auto-merging!')
86+
print('\n\nAll commits are signed, auto-merging!')
8787
# https://cli.github.com/manual/gh_pr_merge
8888
os.environ["GITHUB_TOKEN"] = token
8989
# run(['gh', 'pr', 'megre', branch_name, '--auto'])
9090
os.environ["GITHUB_TOKEN"] = token
9191
else:
92-
print('Not all commits are signed, abort merge!')
92+
print('\n\nNot all commits are signed, abort merge!')
9393

9494
break
9595

0 commit comments

Comments
 (0)