Skip to content

Custom types not matching as expected #260

@Indemnity83

Description

@Indemnity83

Describe the bug

I defined custom types that include an emoji, but when I run the action the validation fails even though the PR title uses one of the type options and it is unclear why the workflow doesn't think it matches.

To reproduce

Setup custom types with emoji's:

with:
  types: |
    ✨ feat
    🐛 fix
    📝 docs
    💎 style
    ♻️ refactor
    📈 perf
    🧪 test
    🏗️ build
    📦 ci
    🧹 chore
    ⏪️ revert

Generate a PR with one of these types in the title "📦 ci: run tests"

Expected behavior

I'd expect this to pass validation, but it fails with the following message:

No release type found in pull request title "📦 ci: run tests". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - ✨ feat
 - 🐛 fix
 - 📝 docs
 - 💎 style
 - ♻️ refactor
 - 📈 perf
 - 🧪 test
 - 🏗️ build
 - 📦 ci
 - 🧹 chore
 - ⏪️ revert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions