This repo is an example with basic workflows for a Go CLI tool hosted on Github.
It adds basic PR building, dependabot integration, testing, coverage etc.
How to use
Copy the contents of this repo into a new repo.
Rename cmd/go-cli-github and update the links at the top of the README. Send a PR for this change, and merge it once green.
Go to repository Settings > General:
Disable wiki and projects
Allow only merge commits for Pull Requests
Allow auto-merge
Automatically delete head branches
Go to repository Settings > Branches and add branch protection to main, and enable: