GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow gitmojis · Issue #15 · conventionalcommit/commitlint

Allow gitmojis #15

New issue
Copy link
New issue
Copy link
Closed
conventionalcommit/parser
#1
conventionalcommit/parser#1
Closed
Allow gitmojis#15
conventionalcommit/parser
#1
Copy link

Description

@rubensa
rubensa
opened on Nov 24, 2023
Issue body actions

Allow using gitmojis in the commit message description.

Looks like they are detected as part of the scope.

For example, the following commit message generated in VSCode using Conventional Commits extension:

chore: :hammer: Add commitlint as git commit-msg hook

Also add **Conventional Commits** VSCode extension

gives:

commitlint

→ input: "chore: :hammer: Add co..."

Errors:
  ❌ parser: scope must be followed by ': '

Total 1 errors, 0 warnings, 0 other severities

Activity

  1. gumbo2k commented on Jul 15, 2024

    @gumbo2k
    gumbo2k
    on Jul 15, 2024
    Contributor
    More actions

    This looks like the parser picks the last : instead of the first one, to separate type(scope) from the rest of the header.

  2. gumbo2k commented on Jul 15, 2024

    @gumbo2k
    gumbo2k
    on Jul 15, 2024
    Contributor
    More actions

    Found it! The bug is not in commitlint itself, but in conventionalcommit/parser

    And it is slightly different than I thought.
    The parser doesn't work with regex but uses a lexer instead.

    When the parser reads a header like type(scope): description and moves from type(scope) to description it uses a greedy take(": ") to read the delimiter.
    This take will read any number (and order) of and : into the current token. and then the parser compares the result to : .
    This fails when the description starts with a : as the take will have read : : already.
    I've fixed it in my fork and I'll open a PR.

    Reacted by Ruben Suarez Alvarez
  3. muthukrishnan24
    closed this as completedin parser#1on Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.