-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New module: GitHub API #124
Comments
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. |
I would really like to attempt adding this, but I'm off on holiday until next year. OK if I call dibs on it? :) |
Of course 😄 you’ve got dibs! |
Hi @applejag, now that the github actions module is in place, what do you think this issue should cover? |
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. |
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:
Automatically use GITHUB_TOKEN secret for credentials
PRs:
GH Action cache:
<!-- risor-id: 1234 -->
string in the markdown comment so it can find it again on next call.Read GH Action/workflow inputs
GH Action commands helpers (https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions)
Upload/download artifacts
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
The text was updated successfully, but these errors were encountered: