risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
611 stars 26 forks source link

New module: GitHub API #124

Open applejag opened 9 months ago

applejag commented 9 months ago

Using Risor could be a nice contestant to using Bash in GH Actions.

Not talking about releasing to GitHub, but instead to use the go-github package: https://pkg.go.dev/github.com/google/go-github/v57/github

It's such a huge package that not everything needs to be there. But common tasks used in GH actions, like:

All of this is already doable, but having them wrapped in easy-to-use first-class module would be nice.

Alternatively, this could also be a third-party module you'll have to import. What's the decision like for what goes into the "standard library" and what not?

Edit: I first now saw that you're making use of GitHub discussions, so maybe I should've written that there. Will use it for future ideas and questions

myzie commented 9 months ago

Yeah, something along these lines has crossed my mind too. I'm 100% onboard with some form of wrapping the go-github client. And agree that use in GH actions would make a lot of sense.

applejag commented 9 months ago

I would really like to attempt adding this, but I'm off on holiday until next year.

OK if I call dibs on it? :)

myzie commented 9 months ago

Of course 😄 you’ve got dibs!

myzie commented 7 months ago

Hi @applejag, now that the github actions module is in place, what do you think this issue should cover?

applejag commented 7 months ago

I'd like to try completing basically everything on that list on the issue. My intention was to do it iteratively, to not have a too huge of a PR.

Time has been limited recently, so I lost my flow.

But I still want to continue on this.