]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
backport-resolve-issue: narrow regular expression
authorNathan Cutler <ncutler@suse.com>
Wed, 13 Nov 2019 10:37:15 +0000 (11:37 +0100)
committerNathan Cutler <ncutler@suse.com>
Mon, 18 Nov 2019 13:13:00 +0000 (14:13 +0100)
commita51ec07c6bdf9b5e0ba9a9c82d65dd2dd4de7546
tree23e2f7eb542fc25e94e2293d4682a8d855f9d5ff
parent45438fc61ae8ad4dfcd9e0dbe44c7c570bd42a35
backport-resolve-issue: narrow regular expression

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:

"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