actions / stale

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

Feature request: Option to move a PR from "open" to "draft" #1130

Open jakub-g opened 7 months ago

jakub-g commented 7 months ago

Description:

Currently the stale action allows a 2-level workflow:

It could be interesting to allow a 3-level workflow:

Alternatively, if this sounds too complicated, an easier first step would be to "move to draft" as an subaction of marking as stale:

Justification:

Personally I find marking PRs as "stale" and closing them as "this should only happen on very old PRs" (many months old). Whereas moving back to draft is "less dramatic".

Are you willing to submit a PR?

No

HarithaVattikuti commented 7 months ago

Hello @jakub-g Thank you for creating this feature request. We will investigate it and get back to you as soon as we have some feedback.

mofosyne commented 3 months ago

In addition it be good to combine this with some form of merge conflict detection to auto set to draft if older than X days with no activity and merge conflict has emerged or CI build is failing.

This is because just because a PR is old doesn't mean its outdated, but a merge conflict or failing CI is a pretty good indicator that more work is needed.

FYI you can lift code from here to get merge conflict detection https://github.com/eps1lon/actions-label-merge-conflict/blob/main/sources/main.ts

This is of interest so I can integrate these automation in a few community projects like llama.cpp