Skip to content

Commit 06087b1

Browse files
authored
Merge pull request #389 from github/copilot/fix-388
2 parents 56cda60 + c5acf92 commit 06087b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

evergreen.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def main(): # pragma: no cover
105105

106106
# Iterate through the repositories and open an issue/PR if dependabot is not enabled
107107
count_eligible = 0
108+
count_prs_created = 0
108109
for repo in repos:
109110
# if batch_size is defined, ensure we break if we exceed the number of eligible repos
110111
if batch_size and count_eligible >= batch_size:
@@ -245,6 +246,7 @@ def main(): # pragma: no cover
245246
existing_config,
246247
)
247248
print(f"\tCreated pull request {pull.html_url}")
249+
count_prs_created += 1
248250
summary_content += (
249251
f"| {repo.full_name} | "
250252
f"{'✅' if enable_security_updates else '❌'} | "
@@ -267,11 +269,10 @@ def main(): # pragma: no cover
267269
continue
268270

269271
print(f"Done. {str(count_eligible)} repositories were eligible.")
272+
print(f"{str(count_prs_created)} pull requests were created.")
270273
# Append the summary content to the GitHub step summary file
271274
append_to_github_summary(summary_content)
272275

273-
print(f"Done. {str(count_eligible)} repositories were eligible.")
274-
275276

276277
def is_repo_created_date_before(repo_created_at: str, created_after_date: str):
277278
"""Check if the repository was created before the created_after_date"""

0 commit comments

Comments
 (0)