Automatically mark pull requests and issues as stale with GitHub Actions
Howdy y’all!
I’m starting my latest Blogvent series, where I write a useful blog post each day in December! If you wanna see last year’s roundup, check them out!
Oh no, stale things!
You don’t want old pull requests and issues to clog your backlog of your open source projects, no matter how big or small. I ran into this problem recently, where people left partially completed PRs and drafts on my repo, and while I appreciate the thought of implementing something, I don’t want to have to keep an eye on something that won’t ever be picked up again, and remember to close things over time.
There has to be a better way!
There is! There’s a handy GitHub Action that you can put into your repos and be on your way.
To do so, open the .github/ folder in your chosen repository, make a folder in it called workflows, and add the Action .yml file there. That’s it!
There’s more documentation on adding Actions here. If you’d like to see how I implemented this specific Action, here’s a good example in my PocketCal app repository!
Ahhh. So fresh. See ya tomorrow!