actions / stale

Marks issues and pull requests that have not had recent interaction
MIT License
1.35k stars 363 forks source link

Draft PR's timer should start from when it was marked as ready instead of PR creation #1115

Open rachaelparris opened 10 months ago

rachaelparris commented 10 months ago

Description: Draft PRs can be set as exempt in the action config. If that is set along with ignore-updates, then once a draft PR is marked as ready, its timer should start from the date it was marked as ready instead of its creation date.

Example config:

      - uses: actions/stale@v8
        with:
          ignore-pr-updates: true
          exempt-draft-pr: true
          days-before-stale: 10
          days-before-close: -1
          days-before-issue-stale: -1
          remove-stale-when-updated: false

Justification: We are using this action to mark PRs that have been open for a while and need prioritized review. We skip draft PRs because they're not ready for review. A PR could be in draft for a few weeks and then marked as ready. It shouldn't be marked in need of prioritized review until it's been ready for the specified time.

Are you willing to submit a PR? yes

marko-zivic-93 commented 10 months ago

Hello @rachaelparris Thank you for creating this issue. We will investigate it and come back to you as soon as we have some updates.