Skip to content

Never a PR Build #33

@rehanvdm

Description

@rehanvdm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions