SciTools / .github

Organisational level things such as the SciTools README and organisation workflows
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Pure GraphQL Peloton update script #16

Closed trexfeathers closed 9 months ago

trexfeathers commented 9 months ago

Uses GraphQL for both queries and mutations. This allows the inclusion of Discussions, and greatly reduced runtime.

Uses sgqlc for a Pythonic representation of GraphQL.

This is a big change. I recommend reading through the main() function of update_project.py to get a feel for the workflow, before diving into how the individual queries/mutations are constructed.

The Peloton in its current guise has been successfully populated by this script on several occasions, both locally and via GitHub Actions.

GitHub actions examples:

Closes #14 Closes #12 Closes #11 Closes #10 Closes #9

bjlittle commented 9 months ago

@trexfeathers Awesome! Thanks for pushing this forwards, this'll make a huge difference to the peloton 🚀 🥳 🎉

trexfeathers commented 9 months ago

Thanks @bjlittle!

I'll give the workflow_dispatch a whirl and see if everything is working in the 'real world'