'pack buildpack register' doesn't fill a GitHub issue
Summary
pack buildpack register opens a GitHub URL without template=add-buildpack.md parameter, which causes GitHub to redirect the URL to a template selection page and drops parameters needed to fill the template.
Reproduction
Steps
Execute registration command like:
pack buildpack register wwwhisper/wwwhisper-cnb -v
The verbose output shows that the command attempts to open the following URL:
https://github.com/buildpacks/registry-index/issues/new?body=%0Aid+%3D+%22wwwhisper%2Fwwwhisper-cnb%22%0Aversion+%3D+%221.0.2%22%0Aaddr+%3D+%22index.docker.io%2Fwwwhisper%2Fwwwhisper-cnb%40sha256%3A4efde1660370c690125d7c4bd506895c24953204ce4e59718fe797978e1e3990%22%0A&title=ADD+wwwhisper%2Fwwwhisper-cnb%401.0.2
But such URL is redirected by GitHub to:
https://github.com/buildpacks/registry-index/issues/new/choose
After selecting `Add Buildpack' template on this page, the issue template is not filled:
The URL assembled by pack should have an additional &template=add-buildpack.md parameter, which fixes the problem:
https://github.com/buildpacks/registry-index/issues/new?body=%0Aid+%3D+%22wwwhisper%2Fwwwhisper-cnb%22%0Aversion+%3D+%221.0.2%22%0Aaddr+%3D+%22index.docker.io%2Fwwwhisper%2Fwwwhisper-cnb%40sha256%3A4efde1660370c690125d7c4bd506895c24953204ce4e59718fe797978e1e3990%22%0A&title=ADD+wwwhisper%2Fwwwhisper-cnb%401.0.2&template=add-buildpack.md
The issue is now filled correctly:
Current behavior
URL is redirected and doesn't fill a GitHub issue.
Expected behavior
URL should fill a GitHub issue.
Environment
pack info
`Pack: Version: 0.38.1 OS/Arch: linux/amd64
Default Lifecycle Version: 0.20.8 `
docker info
` Client: Version: 27.5.1 Context: default Debug Mode: false
`