release-changelog-builder-action: Label extraction doesn't make sense

Hello, I’ve been using this action for a while now and I’m loving it, but there’s a thing I just can’t wrap my head around. Label extraction is very counter-intuitive. I’d expect that label extraction matches the given value against the pattern and uses the target as a label, but apparently, it replaces the pattern with the target and uses that as a label. Is this intended behavior, and if yes, how is this expected to work with multiline values? My use case is that I want to look for specific headers in the PR body and use its name as a label. For example, I want to match ## Feature: and extract “feature” to use as a label. Is this possible with the current implementation? Also, doesn’t it make sense to match labels in a case-insensitive way? GitHub doesn’t consider label names to be case-sensitive, so shouldn’t this be reflected in this action?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

Thank you once again for the PR 😃 and enhancement