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

Improve heuristic for finding related pull requests #171

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

sorenlouv
Copy link
Owner

@sorenlouv sorenlouv commented Mar 31, 2020

This improves the heuristic for finding related pull requests by also matching against the title of the potentially related pull request.

@sorenlouv sorenlouv merged commit dbb0683 into master Mar 31, 2020
@sorenlouv sorenlouv deleted the improve-related-pr-heuristic branch March 31, 2020 21:55
Comment on lines +204 to +207
const prTitleMatch = source.title.includes(firstMessageLine);
const prNumberMatch = source.title.includes(
associatedPullRequest.node.number.toString()
);
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is the important bit of this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant