Skip to content

Help: how to include a "Other changes" section in the hbs template #87

@arkadioz

Description

@arkadioz

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions