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

fix: invalid backports when links are used #108

Merged
merged 2 commits into from Jun 22, 2019

Conversation

codebytere
Copy link
Member

Fixes #107.

We account for both links and PR numbers when searching a PR body to look for valid backports, but did not take into account that this changes which capture group is populated with the valid number.

This PR adds a truthy check to the first capture group (a PR number), and if it's undefined uses the second capture group's value, which must then be correct because the user pasted a link.

cc @MarshallOfSound

@codebytere codebytere requested a review from a team as a code owner June 22, 2019 02:37
@MarshallOfSound MarshallOfSound merged commit 1b47f68 into master Jun 22, 2019
@codebytere codebytere deleted the fix-invalid-backports branch June 22, 2019 02:43
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.

Valid Backports being consistently marked invalid
2 participants