Skip to content

Commit f8f4d5d

Browse files
committed
Create PR if not present, even if no changes occurred
1 parent 5f9075a commit f8f4d5d

File tree

1 file changed

+11
-11
lines changed
  • app/commands/progress/sync

1 file changed

+11
-11
lines changed

app/commands/progress/sync/on.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,17 @@ def on(ctx: click.Context) -> None:
105105
commit("Sync progress with local machine", verbose)
106106
push("origin", "main", verbose)
107107

108-
prs = get_prs(PROGRESS_REPOSITORY_NAME, "main", username, verbose)
109-
if len(prs) == 0:
110-
warn("No pull request created for progress. Creating one now")
111-
pull_request(
112-
"git-mastery/progress",
113-
"main",
114-
f"{username}:main",
115-
f"[{username}] Progress",
116-
"Automated",
117-
verbose,
118-
)
108+
prs = get_prs(PROGRESS_REPOSITORY_NAME, "main", username, verbose)
109+
if len(prs) == 0:
110+
warn("No pull request created for progress. Creating one now")
111+
pull_request(
112+
"git-mastery/progress",
113+
"main",
114+
f"{username}:main",
115+
f"[{username}] Progress",
116+
"Automated",
117+
verbose,
118+
)
119119

120120
success("You have setup the progress tracker for Git-Mastery!")
121121

0 commit comments

Comments
 (0)