You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add "replace" from sprig to go template functions #11572
Describe the feature or problem you’d like to solve
I am trying to use the "--template" formatting with gh search issues, and I want to remove newlines from the title of the issues. I tried using {{.title | replace \"\n\" " "}}:
Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the
help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Activity
github-actions commentedon Aug 25, 2025
Thank you for your issue! We have categorized it as a feature request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
BagToad commentedon Aug 25, 2025
👋 Hey @armindarvish, thank you for writing this up! ✨
Sounds reasonable to me! 👍
Implementation notes:
We intentionally limit our exposure to all the Sprig functions, so adding this one requires adding
replaceto this func map.Note that this code is in
go-gh, so to implement this we need the following, in this order:cli/go-ghto introduce that func.cli/cliwith thecli/go-ghchanges to demonstrate the new func is included and works as expected.cli/go-ghcli/clito upgradecli/go-gh. Usually, Dependabot does this for us, but it depends on the version bump.Intentionally no explicit acceptance criteria - the above should suffice.
Add replace from sprig library to templates
iamazeem commentedon Aug 27, 2025
@BagToad: PR cli/go-gh#196 opened and it's ready for review. Thanks!
BagToad commentedon Oct 22, 2025
cli/go-gh#196 merged.
go-ghand upgrade dependency ingh#12005BagToad commentedon Nov 4, 2025
fixed by #12095