www/content/includes/prs.md
GoReleaser allows you to, instead of pushing directly to the main branch, push to a feature branch, and open a pull requests with the changes.
GoReleaser will check for a .github/PULL_REQUEST_TEMPLATE.md, and set it in
the pull request body if it exists.
We do that to prevent extra work for maintainers of things like winget-pkgs,
nixpkgs, and so on.
You can also push to a fork, and open the pull request in the original branch.
Here's an example on how to set it up:
something: # can be nix, brews, etc...
- repository:
owner: john
name: repo
branch: "{{.ProjectName}}-{{.Version}}"
pull_request:
enabled: true
base:
owner: mike
name: repo
branch: main
This will:
john/repo fork with mike/repo:main (if on GitHub).john/repo, in the branch foo-1.2.3 (assuming
ProjectName=foo and Version=1.2.3). 1john/repo into mike/repo, with the branch main
as target. 2go-github does not have the
required fields to do it).