Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter by commitish regardless of the refs/heads prefix #1089

Merged
merged 1 commit into from Mar 3, 2022

Conversation

mikeroll
Copy link
Contributor

Fixes the problem from #1065 (comment)

@robbinjanssen appreciate if you could test this!

@mikeroll mikeroll force-pushed the fix-filter-by-commitish branch 2 times, most recently from a276477 to 7bc8fbd Compare February 28, 2022 14:52
lib/releases.js Outdated
? releases.filter(
(r) =>
// `refs/heads/branch` and `branch` are the same thing in this context
targetCommitish.replace(headRefRegex, '') ===
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replace can be done once instead of for reach release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course :)

@robbinjanssen
Copy link
Contributor

@mikeroll seems to work, tested it locally! 👍

@mikeroll mikeroll requested a review from jetersen March 2, 2022 12:31
@jetersen jetersen merged commit ba9967c into release-drafter:master Mar 3, 2022
@jetersen jetersen added the type: bug Something isn't working label Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants