Skip to content

Fix #2405: Add template parameter to GitHub issue URL#2407

Merged
jjbustamante merged 2 commits intomainfrom
fix-issue-2405-github-template
Jul 2, 2025
Merged

Fix #2405: Add template parameter to GitHub issue URL#2407
jjbustamante merged 2 commits intomainfrom
fix-issue-2405-github-template

Conversation

@jjbustamante
Copy link
Copy Markdown
Member

@jjbustamante jjbustamante commented Jun 25, 2025

Summary

This PR fixes an issue where pack buildpack register command opens a GitHub URL without the required template parameter, causing GitHub to redirect to a template selection page and drop all pre-filled issue parameters. The fix adds the missing template=add-buildpack.md parameter to ensure the correct issue template is used.

Output

Before

When running pack buildpack register wwwhisper/wwwhisper-cnb, the command opens:

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

This URL gets redirected to the template selection page, losing all parameters.

After

The command now opens:

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 URL correctly uses the add-buildpack template and preserves all pre-filled parameters.

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Related

Resolves #2405

@jjbustamante jjbustamante requested review from a team as code owners June 25, 2025 18:11
@github-actions github-actions Bot added this to the 0.39.0 milestone Jun 25, 2025
@github-actions github-actions Bot added the type/enhancement Issue that requests a new feature or improvement. label Jun 25, 2025
When using 'pack buildpack register', the GitHub URL was missing
the 'template=add-buildpack.md' parameter, causing GitHub to redirect
to a template selection page and drop all pre-filled parameters.

This fix adds the template parameter to ensure the correct issue
template is used and all parameters are preserved.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
@jjbustamante jjbustamante force-pushed the fix-issue-2405-github-template branch from ba6b394 to f7d1352 Compare June 25, 2025 18:58
@jjbustamante jjbustamante merged commit ab77bee into main Jul 2, 2025
15 checks passed
@jjbustamante jjbustamante deleted the fix-issue-2405-github-template branch July 2, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement Issue that requests a new feature or improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'pack buildpack register' doesn't fill a GitHub issue

1 participant