Skip to content

scottvr/gh_discussions_mass_enable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gh_discussions_mass_enable

Programmatically enable Discussions for one or more (or --all) of a user's github repos via web browser (Playwright)

Why

Because GH does not provide a REST API way to do this. I have found that using gh cli it can be done but haven't looked into how it does it if not via API. The Discussions GraphQL API seems to be only for managing discussions and the posts within it, not for enabling it on a repo.

How

clone this repo.

pip install playwright
playwright install
python ghdiscen.py --user <userid> [--repos [list of repos] | --all]

What

The script will launch a chromium browser to github.com. Signin with password (and 2FA) and sit back and watch.

About

Programmatically enable Discussions for one or more (or --all) of a user's github repos via web browser (Playwright)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages