Diarrhea all night long

I'm 36 weeks and last night had diarrhea all night long, like 8+ times going to the bathroom....early sign of labor? Or maybe just something I ate? Was having some light contractions as well.