]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
script/ptl-tool.py: Label Validation
authorJos Collin <jcollin@redhat.com>
Thu, 5 Oct 2017 01:52:32 +0000 (07:22 +0530)
committerJos Collin <jcollin@redhat.com>
Thu, 5 Oct 2017 01:52:38 +0000 (07:22 +0530)
commit0cd54201cfb867e4cfd5c769fa9cc2a0f1ee2436
tree0271f582ba6597085595b15ef0954e932f511021
parent78bd3e922525219abdf527c836555c0c761f731f
script/ptl-tool.py: Label Validation

Validated the label and verified the existence of the label at the beginning of build_branch().
This will avoid:
* Assigning invalid testing labels like 'abcd' and other existing labels like 'bug', 'cleanup' etc; as testing labels
* Stops spamming the Label list in the Ceph repo by creating new (invalid format) labels everytime. The labels can be created manually in github and ptl-tool only uses them.

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/script/ptl-tool.py