Open
Description
Description:
Introduce a parameter only-issue-types
that ensures that only issues of a specific type are set to stale and closed.
Justification:
With the introduction of types, GitHub as given organizations a new issue attribute that can be used for categorization/classification of issues. For different issue types it would be desirable to have different stale settings just like we currently can have for labels. E.g. in my organization, we'll be using the new issue type for separating questions from feature requests. Questions should go stale faster.
Are you willing to submit a PR?
I'm open to try so, but will need some pointers, especially on testing. I'm not familia with TypeScript (or very familiar with JS at all …)
Activity
mahabaleshwars commentedon Nov 4, 2024
Hello @Bibo-Joshi,
Thank you for creating this issue. We will investigate it and provide feedback as soon as we have some updates.
JosephTLyons commentedon Jan 28, 2025
We are switching over to issue types as well over in zed.dev's issue tracker - would love to have this configuration option.
maxwxyz commentedon Feb 22, 2025
This is very much needed, otherwise we have duplicates for labels and types now.
JosephTLyons commentedon Feb 27, 2025
One thing to note is that GitHub's REST API doesn't even support filtering by type, as far as I can tell. So until that lands, getting that feature in the stale action is totally blocked.
https://github.com/orgs/community/discussions/140874#discussioncomment-11582660
Remove bugs and tasks from stale issues
JasonStoltz commentedon Mar 28, 2025
Looks like they've added Issue Type to the Reset API.
Mister-Hope commentedon Apr 9, 2025
Any progress with this one? I think there are no blocking things with it.
type::*
labels to GitHub Issue Types conda/infrastructure#1040andig commentedon Apr 29, 2025
Stale bot is currently unusable without support for issue types...
Bibo-Joshi commentedon Apr 30, 2025
@mahabaleshwars I'd still be open to giving this a shot if you could provide me with a few pointers on how to get started :)
Tobi-mmt commentedon May 13, 2025
@Bibo-Joshi Since it is pretty much the same as the
exempt-issue-labels
option right now, I guess its something like:stale/src/enums/option.ts
Line 15 in f78de97
stale/src/classes/issues-processor.ts
Lines 351 to 369 in f78de97
stale/action.yml
Line 48 in f78de97
exempt-issue-labels
andExemptIssueLabels
to find all occurence where you have tostale/__tests__/main.spec.ts
Lines 1021 to 1051 in f78de97
4 remaining items