Y
Hacker News
new
|
ask
|
show
|
jobs
by
whoisjuan
2108 days ago
Without a CLI you can't automate. (I guess you could, but it will be a pain in the ass)
2 comments
bewuethr
2108 days ago
There was the option to use curl and the GitHub API, but the CLI wraps that very conveniently in the "api" subcommand.
link
azangru
2108 days ago
Huh? Github actions have been around for over a year, and Github webhooks since I can't remember when.
link
whoisjuan
2108 days ago
Not really sure what you're talking about. Not everything you automate on GitHub happens in the context of a CI pipeline like in GitHub Actions. There are many cases for small scripts where you just need to execute a couple of commands.
link
GormHouj
2108 days ago
Yeah, and this is the correct way to automate anything relating to github. Their API is insane.
link
hjdarnel
2108 days ago
...unless you use their CLI wrapper over the API (as in this post) :)
link