Robbie Ray won his fifth straight start and A.J. Pollack hit a two-run double as the Arizona Diamondbacks defeated the San Francisco Giants 3-2 on Friday night.
Ray (14-5) struck out 10 and gave up two runs (one earned), six hits and no walks as the Diamondbacks won for the 19th time in 24 games and for the eighth straight time on the road.
Ray has a 1.39 ERA in his last five starts since coming off the disabled list with a concussion after getting hit by a line drive on July 28.
Arizona reduced its magic number for clinching its first postseason berth since 2011 to seven.
The Diamondbacks trailed 2-1 when Pollack doubled in two runs off Giants starter Jeff Samardzija (9-14) in the seventh inning.
Daniel Descalso started the rally with a two-out single that snapped a streak of 14 straight batters Samardzija had retired.
Samardzija gave up three runs, six hits and no walks in eight innings.
It marked just the eighth time this season that both teams allowed no walks.
Fernando Rodney pitched a scoreless ninth for his 37th save.