Ignore branch validity for LTS release branch targets in public repos


Since LTS release branches may not exist in the public repo,
sanitize-commit cannot validate Pick-to: targets for them when
evaluating public commits. This change bypasses the branch
validation check for release targets to known LTS branches.

In the event that the target branch is not a valid branch in the end,
the cherry-pick bot will simply fail to perform the requested pick
and post an error message to the change, alerting the author.

Fixes: QTQAINFRA-6191
Change-Id: Id87b9e6fd379ad741801f339d42c13dca1f51123
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
commit32c787f01b944cd3a1fbb212ee30b5ea23acfa60
parent130826c46e393ce5a07140533cf5c75b6d583836
authorDaniel Smith <daniel.smith@qt.io>
committerDaniel Smith <daniel.smith@qt.io>
commit timeMon, 18 Mar 2024 12:31:49 +0000