Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: remove mentor count from stats if mentors are disabled#519

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
zkoppert merged 3 commits intomainfromzkoppert-hide-mentor-stats
May 14, 2025

Conversation

@zkoppert
Copy link
Member

@zkoppertzkoppert commentedMay 8, 2025
edited
Loading

Pull Request

Proposed Changes

This pull request introduces a new feature to enable tracking and reporting of mentor activity metrics in the issue metrics system. The changes primarily involve adding a newenable_mentor_count parameter across various functions and updating the logic to conditionally display mentor-related data in the output.

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • runmake lint and fix any issues that you have introduced
  • runmake test and ensure you have test coverage for the lines you are introducing
  • If publishing new data to the public (scorecards, security scan results, code quality results, live dashboards, etc.), please request review from@jeffrey-luszcz

Reviewer

  • Label as eitherfix,documentation,enhancement,infrastructure,maintenance, orbreaking

Signed-off-by: Zack Koppert <zkoppert@github.com>
@zkoppertzkoppert self-assigned thisMay 8, 2025
@zkoppertzkoppert marked this pull request as ready for reviewMay 14, 2025 16:53
CopilotAI review requested due to automatic review settingsMay 14, 2025 16:53
@zkoppertzkoppert requested a review froma team as acode ownerMay 14, 2025 16:53
Copy link
Contributor

CopilotAI 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 introduces a newenable_mentor_count flag to conditionally include the mentor count in the markdown output.

  • Addenable_mentor_count parameter throughout writer functions and main invocation
  • Update tests to remove mentor count when flag is off and pass flag in one test
  • Conditionally write the mentor count row only when enabled

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

FileDescription
markdown_writer.pyAddedenable_mentor_count parameter and conditional mentor row
issue_metrics.pyPassedenable_mentor_count from main into writer calls
test_markdown_writer.pyRemoved disabled-mentor-count expectations and set flag in a test
Comments suppressed due to low confidence (3)

test_markdown_writer.py:370

  • There’s no assertion verifying that the mentor count line actually appears whenenable_mentor_count=True. Add something likeassert '| Number of most active mentors |' in markdown_output to cover the enabled case.
enable_mentor_count=True,

issue_metrics.py:284

  • The CLI parser isn’t defining an--enable-mentor-count flag, soenable_mentor_count may always be unset or cause a NameError. Add an argument likeparser.add_argument('--enable-mentor-count', action='store_true', help='Include mentor count in the report') before it's used.
enable_mentor_count=enable_mentor_count,

markdown_writer.py:103

  • The newenable_mentor_count parameter isn’t documented in the function docstring forwrite_to_markdown. Update the docstring to explain its purpose and default behavior.
enable_mentor_count=False,

Copy link
Member

@jmeridthjmeridth left a comment

Choose a reason for hiding this comment

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

Actually using the boolean. Nice fix.

zkoppert reacted with laugh emoji
@zkoppertzkoppert merged commit0ecfab7 intomainMay 14, 2025
32 checks passed
@zkoppertzkoppert deleted the zkoppert-hide-mentor-stats branchMay 14, 2025 18:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@jmeridthjmeridthjmeridth approved these changes

Assignees

@zkoppertzkoppert

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@zkoppert@jmeridth

[8]ページ先頭

©2009-2025 Movatter.jp