A trip to the NLCS is on the line Thursday night in San Francisco