Scripting with GitHub CLI
Mar 11, 2021Mislav Marohnić

Summary
This post details how to leverage GitHub CLI (gh) for scripting and workflow automation. It covers customizing `gh` with aliases and pagers (like `less` and `delta`), combining `gh` with fuzzy-finders (`fzf`) for interactive selection, and using `gh` within GitHub Actions for tasks like enabling auto-merge and creating releases. It also introduces `gh api` for interacting with the GitHub REST and GraphQL APIs, demonstrating dynamic query construction and JSON processing with `jq`.