def METHOD_NAME(self, workflow_name, ref, inputs=None):
    """
    Create a pipeline targeting a given reference of a project.
    ref must be a branch or a tag.
    """
    workflow = self._repository.get_workflow(workflow_name)
    if workflow is None:
        return False
    if inputs is None:
        inputs = dict()
    return workflow.create_dispatch(ref, inputs)