Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock discussions #25

Closed
JustArchi opened this issue Jun 22, 2021 · 8 comments
Closed

Lock discussions #25

JustArchi opened this issue Jun 22, 2021 · 8 comments

Comments

@JustArchi
Copy link

I'd love to be able to utilize your (awesome!) lock-threads GitHub action in order to automatically lock the discussions in addition to issues and PR.

Is something like that planned?

          discussion-lock-inactive-days: '365'
          discussion-exclude-created-before: ''
          discussion-exclude-labels: ''
          discussion-lock-labels: ''
          discussion-lock-comment: ''
          discussion-lock-reason: 'resolved'

Thank you in advance for considering it, I really appreciate your work on this project.

@dessant
Copy link
Owner

dessant commented Jul 12, 2021

Hi @JustArchi! I think it would be useful to automatically lock resolved discussions that are inactive, but there does not seem to be a native feature to generally mark discussions as done on GitHub, unless you select the Q&A category, in which case you can mark a comment as an answer. We could begin to process discussion categories where answers are enabled.

community/community#43

https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions
https://docs.github.com/en/graphql/reference/mutations#locklockable

I have no experience with the GraphQL API, though the lockLockable mutation will hopefully work for discussions.

@JustArchi
Copy link
Author

Perhaps we could make it configurable through discussion-handle-answered-only: true or something similar, while I totally agree with you that this should be the default behaviour, I don't believe that somebody necro'ing 2-year-old inactive discussion is really going to add something valuable there 🙂.

In any case thanks a lot for considering it.

@dessant
Copy link
Owner

dessant commented Oct 6, 2021

The GraphQL API can be used to lock discussions, I've recently implemented it for Label Actions. There's a feature request for closing or resolving discussions on GitHub: community/community#3097

@Abrynos
Copy link

Abrynos commented Dec 11, 2022

Any progress on this? It's almost been a year :(

@dessant
Copy link
Owner

dessant commented Dec 11, 2022

@Abrynos, I don't have much spare time to work for free in the next few months, but you can fund the development of the project if you'd like to see features implemented sooner. My contact information is on my profile page.

@dessant
Copy link
Owner

dessant commented Mar 15, 2023

@dessant dessant changed the title Planned support for discussions? Lock discussions Jun 12, 2023
@shamoon
Copy link

shamoon commented Oct 10, 2023

This also just dropped, seems useful! https://github.blog/changelog/2023-10-10-filter-answered-discussions-through-the-graphql-api/ (Filter discussions by “answered”)

@shamoon
Copy link

shamoon commented Nov 14, 2023

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants