-
Notifications
You must be signed in to change notification settings - Fork 77
feat: Status column #553
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
feat: Status column #553
Conversation
Signed-off-by: Zack Koppert <zkoppert@github.com>
Signed-off-by: Zack Koppert <zkoppert@github.com>
Signed-off-by: Zack Koppert <zkoppert@github.com>
Signed-off-by: Zack Koppert <zkoppert@github.com>
@@ -154,7 +154,8 @@ This action can be configured to authenticate with GitHub App Installation or Pe | |||
| `HIDE_TIME_TO_ANSWER` | False | False | If set to `true`, the time to answer a discussion will not be displayed in the generated Markdown file. | | |||
| `HIDE_TIME_TO_CLOSE` | False | False | If set to `true`, the time to close will not be displayed in the generated Markdown file. | | |||
| `HIDE_TIME_TO_FIRST_RESPONSE` | False | False | If set to `true`, the time to first response will not be displayed in the generated Markdown file. | | |||
| `HIDE_CREATED_AT` | False | True | If set to `true`, the creation timestmap will not be displayed in the generated Markdown file. | | |||
| `HIDE_STATUS` | False | True | If set to `true`, the status column will not be shown | | |||
| `HIDE_CREATED_AT` | False | True | If set to `true`, the creation timestamp will not be displayed in the generated Markdown file. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HIDE_CREATED_AT is not related to this change. I just noticed it wasn't properly documented.
@@ -39,6 +39,8 @@ class EnvVars: | |||
hide_time_to_close (bool): If true, the time to close metric is hidden in the output | |||
hide_time_to_first_response (bool): If true, the time to first response metric is hidden | |||
in the output | |||
hide_created_at (bool): If true, the created at timestamp is hidden in the output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hide_created_at is not related to this change. I just noticed it wasn't properly documented.
elif issue.state == "open": # type: ignore | ||
num_issues_open += 1 | ||
if env_vars.hide_status is False: | ||
issue_with_metrics.status = f"{issue.issue.state}" # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open issues don't have a state_reason
Signed-off-by: Zack Koppert <zkoppert@github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestions but not blockers. Results are same.
Co-authored-by: Jason Meridth <35014+jmeridth@users.noreply.github.com> Signed-off-by: Zack Koppert <zkoppert@github.com>
Co-authored-by: Jason Meridth <35014+jmeridth@users.noreply.github.com> Signed-off-by: Zack Koppert <zkoppert@github.com>
Pull Request
This pull request introduces a new "Status" column to the issue metrics system and makes it configurable through an environment variable (
HIDE_STATUS
). It also updates the relevant classes, docs, functions, and tests to support this feature.Here is an example report with HIDE_STATUS set to false:

fixes #552
Proposed Changes
New Feature: Status Column
status
attribute to theIssueWithMetrics
class to store issue statuses (e.g., "open", "closed as completed") (classes.py
, [1] [2] [3].get_per_issue_metrics
function to populate thestatus
field based on the issue's state and state reason (issue_metrics.py
, issue_metrics.pyR178-R183).Configuration Updates
HIDE_STATUS
to control the visibility of the "Status" column in the output (config.py
, [1] [2] [3] [4] [5] [6].HIDE_STATUS
environment variable (README.md
, README.mdL157-R158).Markdown Generation Enhancements
get_non_hidden_columns
function and Markdown-writing logic to include the "Status" column when not hidden (markdown_writer.py
, [1] [2] [3].Test Coverage
HIDE_STATUS
environment variable and the inclusion of the "Status" column in the output (test_config.py
, [1] [2] [3] [4];test_markdown_writer.py
, [5] [6] [7] [8];test_assignee_functionality.py
, [9].These changes enhance the flexibility and usability of the issue metrics system by allowing users to track and customize the visibility of issue statuses.
Readiness Checklist
Author/Contributor
make lint
and fix any issues that you have introducedmake test
and ensure you have test coverage for the lines you are introducing@jeffrey-luszcz
Reviewer
fix
,documentation
,enhancement
,infrastructure
,maintenance
, orbreaking