actions / stale

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

[Feature Request] Support for Discussions #994

Open shamoon opened 1 year ago

shamoon commented 1 year ago

Description: Now that GH supports closing discussions it would be awesome to have support here. Thanks for considering

Justification: Discussions can now be closed.

113451 commented 1 year ago

name: 'Close stale issues and PRs' on: schedule:

jobs: stale: runs-on: ubuntu-latest steps:

dsame commented 1 year ago

Hello @shamoon, thanks for the suggesiton, we are starting to investigate the issue

jricciardi commented 1 year ago

Just adding some support to this ask - this would be a great addition to this action!

dai-shi commented 1 year ago

Looking forward to this!

hugtalbot commented 1 year ago

Hi guys, is there any progress made or planned on it? Looking forward to it as well

shamoon commented 1 year ago

This could be useful too: https://github.blog/changelog/2023-10-10-filter-answered-discussions-through-the-graphql-api/ Like close stale & answered discussions

Also seems to be graphql api only (so is current discussions API support)

steffen-karlsson commented 7 months ago

I've implemented a workflow using graph API for stale discussions and was thinking of doing a open-source action to cater for it, when I found this issue.

If you like, I can try working on it :)

hugtalbot commented 7 months ago

we did it as well using GraphQL API here

shamoon commented 7 months ago

Me three :)

https://github.com/paperless-ngx/paperless-ngx/blob/43ec154bc2f7bca35fb1910c2abd63e568c62c09/.github/workflows/repo-maintenance.yml#L57-L281

steffen-karlsson commented 7 months ago

@shamoon @hugtalbot @dai-shi As this seems to be rather stale (sorry for my bad joke), I've decided to create this: https://github.com/marketplace/actions/stalesweeper, first official release is now ready and tested and should solve all listed scenarios :) Hope you'll give it a try and maybe a star.

All collaboration are warmly welcome!

shamoon commented 7 months ago

Nice work! Will definitely check it out.

mtdvlpr commented 4 days ago

@dsame, any update on this? I would love to have "official" support for closing discussions here!