[wishlist] Support for GitHub Discussions?

Open
#1,055 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
github, graphql, typescript
Domain
api, tooling

Research direction

Start with the linked GraphQL API for Discussions documentation and verify the mutations for listing, commenting on, and closing or resolving discussions. Investigate the described web UI endpoint for adding and removing labels. Done means stale processing can cover discussions, including the required moderation and labeling behavior.

Written by the indexing model from the issue text.

Description

feature request

Description:

Has any thought gone into adding support for moderating GitHub Discussions and labelling them as stale and closing them? I notice that there only appears to be support for using the GraphQL API for Discussions rather than the REST api. Whilst it appears that it would support the mutations needed to list / comment / close/resolve the discussions, it doesn't immediately appear that it has a way of adding labels to them (even though that is supported by the web ui which makes a FORM POST to /org/repo/discussions/labels?number=1234 to add/remove labels)

Justification:

Discussions can fill up with unanswered questions/threads over time and it would be useful to keep them healthy with stale processing in the same way as issues and pull requests

Dominant language
TypeScript
Stars
1.7k
Forks
438
Avg merge
27d 8h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actions/stale

All issues in actions/stale

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.