risor-io / risor

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

Added GitHub Actions module (gha) #162

Closed applejag closed 6 months ago

applejag commented 6 months ago

First iteration of GH module. Just a lot of very basic tools.

Highly inspired by the https://github.com/actions/toolkit library.

Question: Should these functions be renamed to gha module instead? As these are more GitHub Action related than just plain GitHub API functions? Or is it OK with having "get repository" and "create pullrequest" type of functions (planned) in the same module as these gh.is_debug and gh.add_path-type of functions?

Relates to #124 (but does not resolve it, there's still a lot of stuff missing)

luisdavim commented 6 months ago

can you add an example under examples/scripts I think all new features should come with one of those, it helps reviewing and they also serve as documentation, and latter could actually be included in the documentation...