return a promise from listPulls function