Updated

Madison Bumgarner took a no-hitter into the sixth inning and finished with a one-hitter and the San Francisco Giants beat the Cincinnati Reds 5-0 Thursday night.

Bumgarner (10-4) completed his first career game with his first shutout as the Giants tossed four consecutive shutouts for the first time in franchise history. Bumgarner walked one and struck out eight in winning his fifth straight decision.

The Giants became the 17th team to have four or more consecutive shutouts since 1918. The Baltimore Orioles did it most recently, with five straight in 1995.

Angel Pagan, Pablo Sandoval, Gregor Blanco and Ryan Theriot each drove in a runs for the Giants, who have won four straight and six of seven to move into first place in the NL West for the first time this year. Melky Cabrera had two hits and reached base four times.

Johnny Cueto (9-4) had his four-game winning streak halted despite turning in a quality start. He allowed three runs — two earned — on six hits in six innings. He walked four and struck out three.

Ryan Hanigan led off the sixth with a solid single to end Bumgarner's no-hit bid.

Bumgarner faced two over the minimum as Giants pitchers extended their scoreless streak to a San Francisco-record 36 innings. He walked Drew Stubbs in the first, and then retired eight straight before walking him again in the fourth.

Stubbs was caught stealing, and Bumgarner retired 17 of the final 18 batters he faced.

Bumgarner had allowed 13 runs in his first 13 2-3 innings against the Reds, losing twice.

The Giants scored twice with two outs in the first. Cabrera walked and Buster Posey singled ahead of Pagan's RBI single. Posey came around to score on a throwing error by right fielder Jay Bruce.

Sandoval doubled home a run in the sixth and Blanco tripled home a run in the seventh. Theriot followed Blanco's hit with a single.

NOTES: Reds IF Brandon Phillips was a late scratch because of continuing effects from the blow to the head he received during Wednesday's 8-4 loss to the Milwaukee Brewers. ... The Reds have lost three of their last five. ... Cueto had not allowed a run to the Giants in his previous 22 innings against them. ... The Giants' pitching staff has an NL-leading 10 shutouts. ... Bumgarner became the first Giants' pitcher to win five games in a calendar month since Tim Lincecum in September of 2010. ... Reds IF Henry Rodriguez began a rehab assignment in the Arizona League on Thursday. ... Cabrera has five hits in his last 13 at bats over four games. ... Giants RHP Matt Cain (9-2, 2.27) goes for his ninth straight win on Friday night. ... Reds RHP Mike Leake (2-5, 4.46) has tossed seven quality starts over his last eight appearances. He's 2-0 with a 2.82 ERA in his last eight starts.