-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I am trying to modify the template to be able to identify any emoji that is not part of the defined sections, to be put in this "Other changes" section:
{{#if compareUrl}}
# [v{{nextRelease.version}}]({{compareUrl}}) ({{datetime "UTC:yyyy-mm-dd"}})
{{else}}
# v{{nextRelease.version}} ({{datetime "UTC:yyyy-mm-dd"}})
{{/if}}
{{#with commits}}
{{#if sparkles}}
## ✨ New Features
{{#each sparkles}}
- {{> commitTemplate}}
{{/each}}
{{/if}}
{{#if bug}}
## 🐛 Bug Fixes
{{#each bug}}
- {{> commitTemplate}}
{{/each}}
{{/if}}
{{#if ambulance}}
## 🚑 Critical Hotfixes
{{#each ambulance}}
- {{> commitTemplate}}
{{/each}}
{{/if}}
{{#if lock}}
## 🔒 Security Issues
{{#each lock}}
- {{> commitTemplate}}
{{/each}}
{{/if}}
{{#if boom}}
## 💥 Breaking Changes
{{#each boom}}
- {{> commitTemplate}}
{{/each}}
{{/if}}
{{#unless (or (eq this 'boom') (eq this 'lock') (eq this 'sparkles') (eq this 'bug') (eq this 'ambulance'))}}
## Other Changes
{{/unless}}
{{/with}}
But when I run the workflow I get the following error (I am a little new to hbs so this "Other section" I made was with help of an AI, hopefully someone can help me correct it and add the desired section properly):
Error: Missing helper: "eq"
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request