Skip to content

Potentially inaccurate time in draft #417

@zkoppert

Description

@zkoppert

Describe the bug

The time in draft function assumes that the pr is opened as a draft which is not always true and if a PR goes into draft after being in a ready for review state, the draft time time after a ready for review state is not counted. It is also not cumulative.

To Reproduce

  1. Run the action with Time in Draft enabled on pull requests that have moved into draft state after being ready for review.

Expected behavior

Ideally we would add up all the time in draft for a pr and record that as "Time in draft".

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions