I am not sure why but the sourceVersion field in the JSON event never starts with pr/.
|
matches = re.match(r'^pr\/(\d+)', self._get_build_details().get('sourceVersion', "")) |
A sample from my event as output when DEBUG is enabled:
'currentPhase': 'COMPLETED', 'buildStatus': 'SUCCEEDED', 'sourceVersion': '686fcdc44df8358e3382e80379d7abec66f47e38', 'resolvedSourceVersion': '686fcdc44df8358e3382e80379d7abec66f47e38',
Am I a missing something silly, do you have to create the PR in a certain way?