tasks/libs/common/gitlab.py
def last_pipeline_for_ref(self, ref, per_page=100):
        """
        Gets the last pipeline for a given reference.
        per_page cannot exceed 100.
        """
        pipelines = self.pipelines_for_ref(ref, per_page=per_page)

        if len(pipelines) == 0:
            return None

        return sorted(pipelines, key=lambda pipeline: pipeline['created_at'], reverse=True)[0]

        Gets the last pipeline for a given reference.
        per_page cannot exceed 100.
        
Gets the last pipeline for a given reference.
per_page cannot exceed 100.
Gets the last pipeline for a given reference . per_page cannot exceed 100 .
def last_pipeline_for_ref(self, ref, per_page=100):
        pipelines = self.pipelines_for_ref(ref, per_page=per_page)
        if len(pipelines) == 0:
            return None
        return sorted(pipelines, key=lambda pipeline: pipeline['created_at'], reverse=True)[0]
def last_pipeline_for_ref ( self , ref , per_page = 100 ) : pipelines = self . pipelines_for_ref ( ref , per_page = per_page ) if len ( pipelines ) == 0 : return None return sorted ( pipelines , key = lambda pipeline : pipeline [ 'created_at' ] , reverse = True ) [ 0 ]
Gets the last pipeline for a given reference.
Gets the last pipeline for a given reference .
"""
        Gets the last pipeline for a given reference.
        per_page cannot exceed 100.
        """
self
ref
per_page