-
Notifications
You must be signed in to change notification settings - Fork 70
fix: Use the output_file
variable in issue_metrics.py
#480
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
fix: Use the output_file
variable in issue_metrics.py
#480
Conversation
@jakeatoms great addition. Thank you. Could you please alter or add some new tests to ensure this doesn't regress? |
Will do! |
@jmeridth OK, to accomplish testing without strictly testing Let me know if you think this is sufficient, thanks! |
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.
Awesome! Thanks for the fix!
I think there may be an issue introduced by these changes which leads to not taking a default value of OUTPUT_FILE. In case it's not specified explicitly, it fails with:
|
@damian131 This should be resolved with https://github.com/github/issue-metrics/releases/tag/v3.18.3. Can you confirm? |
Pull Request
Proposed Changes
Resolves #479
When the
OUTPUT_FILE
env variable is specified in a calling Action, it is used everywhere except when checking for file size and splitting into multiple files. The defaultissue_metrics.md
name was hardcoded.This PR updates the script to use the provided
output_file
name and uses that naming as the basis for the smaller file names.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