-
Notifications
You must be signed in to change notification settings - Fork 70
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: Adding 'Created_At' column, defaulting to false #460
Conversation
|
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.
One code suggested to minimize duplication. Can you please add negative tests to test_config.py
and tests to test_markdown_writer.py
and test_json_writer.py
?
Pulling your branch and looking into this. UPDATE: Fix below |
The code suggestion fixes the linting issue. Since issue_with_metrics.created_at = issue["createdAt"] (.venv) ➜ issue-metrics git:(create_at) mypy --config-file=.github/linters/.mypy.ini *.py
Success: no issues found in 34 source files |
@Chocrates thank you for your contribution. Hopefully my comments above help you get past the linting issue and if you can look at the other suggestions. Cheers. |
Co-authored-by: JM (Jason Meridth) <[email protected]> Signed-off-by: Chris McIntosh <[email protected]>
- [x] bad indenting - [x] bad code still present - [x] docs - [x] bad f string, single vs double quotes also - [x] line too long, ignoring Signed-off-by: jmeridth <[email protected]>
Signed-off-by: jmeridth <[email protected]>
Thanks @jmeridth, sorry I didnt get back to it in time |
No worries. My suggestion didn't include the deletes. My bad. Figured I could get it over the finish line. Thank you for the addition. We know others will use it. Cheers. |
We need to revert this @jmeridth, getting an error not being able to find It is on my work account so i don't have the log available right now, but it is this line https://github.com/github/issue-metrics/pull/460/files#diff-ce3c5ee2a2d613519aa58370092bb57e6cf099d988893cad9c5aec0cf10776e8R163 I don't recall what i had before |
I think it needs to be |
@Chocrates I just merged #462 and released v3.18.0. Please try that. If that still fails, I'll revert both PRs. |
No luck, I think it needed to be Error was "Type error: issuesearchresult object is not subscriptable" |
I changed |
Hey @jmeridth, like this commit. Basically we can't access it like an array for somereason
|
Pull Request
Proposed Changes
We use this internally to pull metrics on open PR's and they would like to see the creation timestamp.
This PR adds the
created_at
column, defaulting to false with theHIDE_CREATED_AT
environment variable.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