Skip to content

feat: Add pull request count output to program summary #389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2025

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 29, 2025

This change adds a new output line that displays the number of pull requests created by the program, addressing user feedback about difficulty in manually counting PRs.

Changes Made

  • Added count_prs_created counter variable to track successful pull request creations
  • Incremented counter only when pull requests are actually created (not for issues)
  • Added output line: "{count} pull requests were created." after the existing eligible repositories summary
  • Fixed duplicate print statement that was showing the eligible repositories count twice

Example Output

Before:

Done. 5 repositories were eligible.
Done. 5 repositories were eligible.  # duplicate line

After:

Done. 5 repositories were eligible.
3 pull requests were created.

Implementation Details

The counter is incremented only in the pull request creation path (follow_up_type == "pull"), ensuring accurate tracking. Issues created via follow_up_type == "issue" do not increment the PR counter, maintaining the distinction between the two follow-up types.

This provides users with clear visibility into how many pull requests were opened without requiring manual counting, while preserving all existing functionality.

Fixes #388.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] print out the number of pull requests created feat: Add pull request count output to program summary Jul 29, 2025
@Copilot Copilot AI requested a review from zkoppert July 29, 2025 22:36
Copilot finished work on behalf of zkoppert July 29, 2025 22:36
@zkoppert zkoppert marked this pull request as ready for review July 30, 2025 00:56
@Copilot Copilot AI review requested due to automatic review settings July 30, 2025 00:56
@zkoppert zkoppert requested a review from a team as a code owner July 30, 2025 00:56
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a pull request counter to track and display the number of PRs created by the program, addressing user feedback about difficulty manually counting PRs. It also fixes a duplicate print statement that was showing the eligible repositories count twice.

  • Added count_prs_created counter variable to track successful PR creations
  • Incremented counter only when PRs are created (not issues)
  • Added output line displaying the number of PRs created
  • Removed duplicate print statement for eligible repositories count
Comments suppressed due to low confidence (1)

evergreen.py:277

  • [nitpick] The removed duplicate print statement leaves an extra blank line. Consider removing one of the two consecutive blank lines to maintain consistent spacing.
    append_to_github_summary(summary_content)


def is_repo_created_date_before(repo_created_at: str, created_after_date: str):

@zkoppert zkoppert requested a review from jmeridth July 30, 2025 00:59
@zkoppert zkoppert merged commit 06087b1 into main Jul 30, 2025
35 checks passed
@zkoppert zkoppert deleted the copilot/fix-388 branch July 30, 2025 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

print out the number of pull requests created
3 participants