Skip to content

feat: add support to use issue template from registry index for pack yank#2513

Open
burnerlee wants to merge 1 commit intobuildpacks:mainfrom
burnerlee:burnerlee/ISS-2461
Open

feat: add support to use issue template from registry index for pack yank#2513
burnerlee wants to merge 1 commit intobuildpacks:mainfrom
burnerlee:burnerlee/ISS-2461

Conversation

@burnerlee
Copy link

Summary

This PR adds support to read the issue template from registry-index while running pack buildpack yank ....

In case the template doesn't exist it falls back to the harcoded template. The hardcoded template has been updated to include yank=true when .yank is true.

Output

Before

Issue Body:

id = "foo-ns/foo-bp"
version = "1.2.3"

After

Issue Body:

```
id = "foo-ns/foo-bp"
version = "1.2.3"
yank = true
```

Documentation

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

Related

resolves #2461

@burnerlee burnerlee requested review from a team as code owners January 20, 2026 05:50
@github-actions github-actions bot added this to the 0.40.0 milestone Jan 20, 2026
@github-actions github-actions bot added the type/enhancement Issue that requests a new feature or improvement. label Jan 20, 2026
@burnerlee
Copy link
Author

@dmikusa @jjbustamante could you PTAL?

titleTemplateStr = title
bodyTemplateStr = body
}
// Silently fall back to hardcoded templates if loading fails
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would at least throw a warning message in the log to inform that there was some issue parsing the template, and we are falling back to a hardcoded template

@jjbustamante
Copy link
Member

Hi @burnerlee!

Thanks for this PR, it looks good to me. Could you add some test coverage? especially for unhappy paths, I would like the users to easily provide logs or something if they have issues with the templates.

@jjbustamante
Copy link
Member

Also do not forget to signoff your commits for the DCO check to pass

@burnerlee
Copy link
Author

Sure let me add some unit tests

@jjbustamante jjbustamante modified the milestones: 0.40.0, 0.41.0 Feb 3, 2026
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 yank command fails

2 participants