Handle branch prefixes for pick targets


The sanity bot does not presently handle Pick-to: branch targets
when the branch contains a prefix. Since Pick-to: targets are always
bare, we should test for the branch including allowed prefixes.

Public LTS branches are prefixed with "lts-".
TQtC private branches are prefixed with "tqtc/lts-".

Change-Id: I31fba92bf39fc92e06f0bf8e0c93ef6874151935
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
commit9c5662202d21ed5b472e0bac80fd0a734ee0480e
parentea67c51fc06fd77e2a133ecffa54cede1bd78c8c
authorDaniel Smith <daniel.smith@qt.io>
committerDaniel Smith <Daniel.Smith@qt.io>
commit timeFri, 21 Jul 2023 06:30:24 +0000