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

backport-resolve-issue: narrow regular expression and read key/token from files #31594

Merged
merged 2 commits into from Nov 19, 2019

Conversation

smithfarm
Copy link
Contributor

@smithfarm smithfarm commented Nov 13, 2019

The regular expression used to extract tracker URLs from the PR body
was too generous. When there were two URLs on the same line and the
second was a tracker URL, the regex picked up both of them. For example,
the following string matched the regex:

https://github.com/ceph/ceph/pull/26538, https://tracker.ceph.com/issues/41452

This commit fixes the issue.

Signed-off-by: Nathan Cutler ncutler@suse.com

src/script/backport-resolve-issue Outdated Show resolved Hide resolved
The regular expression used to extract tracker URLs from the PR body
was too generous. When there are two URLs on the same line and the
second is a tracker URl, the regex picked up both of them. For example,
the following string matched the regex:

"ceph#26538, https://tracker.ceph.com/issues/41452"

This commit fixes the issue.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
@smithfarm smithfarm force-pushed the wip-bri-regex-fix branch 2 times, most recently from 415f98a to c4854d2 Compare November 18, 2019 13:17
Thanks to Tiago Melo for inspiring me to do this.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
@smithfarm
Copy link
Contributor Author

@tspmelo Please take another look. It should be ready now.

@smithfarm smithfarm changed the title backport-resolve-issue: narrow regular expression backport-resolve-issue: narrow regular expression and read key/token from files Nov 18, 2019
@smithfarm smithfarm merged commit 71633b2 into ceph:master Nov 19, 2019
@smithfarm smithfarm deleted the wip-bri-regex-fix branch November 19, 2019 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants