Skip to content

Add time before label metric #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add time before label metric #1

wants to merge 1 commit into from

Conversation

wdvr
Copy link
Owner

@wdvr wdvr commented Feb 12, 2025

Add functionality to measure the time before a specified label is added to an issue.

  • Add new environment variables HIDE_TIME_BEFORE_LABEL and LABEL_BEFORE in config.py to control the visibility and specify the label to measure time before.
  • Update get_per_issue_metrics function in issue_metrics.py to calculate and add the time before the specified label to the IssueWithMetrics object.
  • Add get_time_before_label function in labels.py to calculate the time before the specified label is added to an issue.
  • Update get_non_hidden_columns and write_to_markdown functions in markdown_writer.py to include the new column "Time before " in the markdown table if HIDE_TIME_BEFORE_LABEL is False.
  • Add unit tests for the new environment variables and the new time before label metric in test_config.py, test_issue_metrics.py, test_labels.py, and test_markdown_writer.py.

Add functionality to measure the time before a specified label is added to an issue.

* Add new environment variables `HIDE_TIME_BEFORE_LABEL` and `LABEL_BEFORE` in `config.py` to control the visibility and specify the label to measure time before.
* Update `get_per_issue_metrics` function in `issue_metrics.py` to calculate and add the time before the specified label to the `IssueWithMetrics` object.
* Add `get_time_before_label` function in `labels.py` to calculate the time before the specified label is added to an issue.
* Update `get_non_hidden_columns` and `write_to_markdown` functions in `markdown_writer.py` to include the new column "Time before <label>" in the markdown table if `HIDE_TIME_BEFORE_LABEL` is False.
* Add unit tests for the new environment variables and the new time before label metric in `test_config.py`, `test_issue_metrics.py`, `test_labels.py`, and `test_markdown_writer.py`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant