Skip to content

Commit

Permalink
Parse labels with emojis (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangoslen committed Apr 11, 2024
1 parent 155ab09 commit f87a2db
Show file tree
Hide file tree
Showing 5 changed files with 31,255 additions and 6,948 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Changed
- Fix Github Actions Annotations ([#281](https://github.com/dangoslen/changelog-enforcer/pull/281))

### Fixed
- Handle `skipLabels` that contains emojis by properly looking for `:` characters in the label extractor regex (fixes #284)

### Dependencies
- Bump `actions/checkout` from 4.1.1 to 4.1.2 ([#283](https://github.com/dangoslen/changelog-enforcer/pull/283))

Expand Down
7 changes: 7 additions & 0 deletions __tests__/label-extractor.test.js
Expand Up @@ -41,4 +41,11 @@ describe('the label-extractor', () => {

expect(labels).toStrictEqual(['skip/changelog', 'no/changelog'])
})


it('should handle multiple labels containing a `:` characters (emoji usage)', () => {
const labels = labelExtractor.extractLabels(':wrench: GitHub Actions, :smile: Best Label Ever')

expect(labels).toStrictEqual([':wrench: GitHub Actions', ':smile: Best Label Ever'])
})
})

0 comments on commit f87a2db

Please sign in to comment.