SAN FRANCISCO -- It took Mike Leake five starts to earn his first win with Arizona. What matters most to him right now is taking his success from Tuesday night into September and through the final month.
Leake pitched into the eighth inning, leading the Diamondbacks to a 3-2 victory over the San Francisco Giants.
"I hope to have this one continue and have it be kind of a repetitive thing and a consistent thing," Leake said. "We only have about a month left to kind of prove ourselves here, so we're going to need more of this."
Ketel Marte homered in the fifth for Arizona, but came up limping as he ran the bases and left because of a cramp in his right hamstring. He received treatment and expects to play Thursday after the team's day off.
Marte's single in the third gave him a 10-game hitting streak and career-best 21-game streak safely reaching base. He hit his 28th homer with a drive over the center-field wall.
Adam Jones hit a go-ahead single in the sixth off Sam Coonrod (4-1), and Christian Walker added an RBI single the next inning as Arizona won the season series 10-9 and went 7-2 on the Giants' home field.
Leake (10-10) won his fifth start since coming over in a trade with Seattle on July 31. He improved to 6-2 in 13 appearances against the Giants.
Stephen Vogt put San Francisco ahead with an RBI single in the first, but the Giants did little else against Leake. After Alex Dickerson's two-out single in the third, Leake retired his next 14 batters before Mike Yastrzemski's one-out walk in the eighth chased the right-hander.
"He got into a great run doing the things that he knows how to do best and kept turning over the lineup," manager Torey Lovullo said.
Giants starter Jeff Samardzija has allowed one or fewer runs in four of his last five home starts. He gave up one run and three hits in five innings.
"We're just waiting to get hot," Samardzija said. "We're right there and we need to figure out how to flip it so we come out on the right side."
Archie Bradley got three outs for his ninth save and Arizona won the season series for the third time in five years -- also in 2015 and `17.
Diamondbacks: LF David Peralta has decided to undergo season-ending right shoulder surgery after landing on the injured list for a third time this season because of the recurring injury. Peralta, who hadn't played since Aug. 23, is scheduled to undergo a cleanup procedure Friday for inflammation in the AC joint. Peralta is expected to be ready for spring training 2020. ... RHP Luke Weaver (forearm tightness) is scheduled to throw a bullpen Friday and if all goes well the next step will be a simulated game sometime next week.
Giants: RHP Johnny Cueto will make one more rehab start with Triple-A Sacramento, likely Saturday, and if all goes well his next step will be a start for the Giants after missing all season recovering from Tommy John surgery. ... RHP Trevor Gott was placed on the 10-day injured list with a Grade 1 sprain of the flexor tendon and ulnar collateral ligament. Manager Bruce Bochy expects him to be shut down for two weeks but be OK to pitch again this season. Team orthopedist Dr. Ken Akizuki was scheduled to read the MRI exam.
The Giants placed second baseman Scooter Gennett, the guy they kept over Joe Panik, on unconditional release waivers as they made room for Mauricio Dubon. The touted prospect was recalled from Sacramento and will give Brandon Crawford some breaks at shortstop.
Submarine righty Tyler Rogers made his major league debut in the eighth after having his contract selected from the River Cats. He at last got his chance in the big leagues like identical twin brother Taylor -- he's left-handed, however -- on the Twins pitching staff. Rogers spent seven years in the minors before his callup.
Taylor was his first call, only fitting since Tyler got the first call when his twin was promoted.
Rogers is eager to see how he fares at the highest level.
"We'll trust the stuff and roll with it," said Rogers, whose parents planned to be at the ballpark.
Arizona has a day off Wednesday before right-hander Merrill Kelly (9-13, 4.86 ERA) pitches the series opener at home against the Dodgers.
The Giants have an off day Wednesday with their Thursday starter vs. San Diego still listed as to be determined.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
'We're going to the World Series': Altuve, Astros feast on the big moments
The Astros and their second baseman put away the Yankees with incomparable mastery of the little things and their biggest opportunities.
Aaron Judge labels Yankees' season 'a failure' after ALCS loss to Astros
After being eliminated from the postseason by the Astros for the third time in the past five years, the Yankees rued their many missed opportunities in the ALCS, with Aaron Judge not mincing words when labeling the season "a failure."
Yankees locker room hugs it out after Game 6 loss
Aaron Judge hugs teammates and coaches while Aaron Boone hugs Didi Gregorius after the Yankees' crushing Game 6 loss.
Hinch gives speech as Astros celebrate in locker room
A.J. Hinch and the Houston Astros celebrate as they punch their ticket to their second World Series in three seasons.
Hinch recaps 'unbelievable' 9th inning
A.J. Hinch describes going from a punch in the gut after DJ LeMahieu's game-tying home run to the celebration of Jose Altuve's walk-off homer.
Boone: Game 6 loss 'the ultimate pain in sports'
Aaron Boone describes his emotions after Jose Altuve's walk-off home run that ended the Yankees' season.