Skip to content

Time in draft for pull requests metrics is always None #586

@Aloshadance

Description

@Aloshadance

Describe the bug

When I run the github action with the DRAFT_PR_TRACKING set to true for the pull requests metrics, I get the value None in the Time in draft column for all pull requests.
In the first screenshot, I displayed that the pull request is in draft status, but Time in draft is still None. However, the situation is the same if the pull request has already entered the Ready for Review state, having previously been in draft status.

To Reproduce

Run issue metrics in a github workflow step with DRAFT_PR_TRACKING set to true.

Expected behavior

I would like to get the correct and at least working Time in draft for pull requests.
It seems to me that the None value is valid only for those pull requests that were not in the draft status at all.

Screenshots

Image Image

Additional context

runs-on: ubuntu-latest
version of issue metrics package: latest (3.23.0)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions