SAN DIEGO (AP) - Madison Bumgarner won his final start before the trade deadline and rookie Mike Yastrzemski had four hits, two RBIs and scored the go-ahead run to lead the surging San Francisco Giants to a 7-6 victory against the San Diego Padres on Sunday.
Bumgarner (6-7) had been considered a prime trade target but the Giants could be inclined to keep the ace left-hander after they've won 19 of 24 games to jump into the wild-card race. The Giants had 16 hits in beating the Padres for the seventh time in eight games since June 11, including five of six at Petco Park this month.
Bumgarner allowed only four hits in seven innings, including a three-run homer by Hunter Renfroe two batters after he hit prized rookie Fernando Tatis Jr. with a pitch, drawing the ire of Padres fans. MadBum struck out six and walked two.
Will Smith pitched the ninth for his 26th save, allowing Wil Myers' two-run homer, his 13th.
It was Giants manager Bruce Bochy's last game in San Diego. He's retiring at the end of this season, his 13th with the Giants. Before that, he managed the Padres for 12 seasons.
Renfroe drove in all four runs for San Diego, which has lost 11 of 15 games since the All-Star break.
Yastrzemski, the grandson of Hall of Famer Carl Yastrzemski, had his second four-hit game. His first was July 15 at Colorado. He made his big league debut on May 25. Buster Posey had three hits, including an RBI double in the ninth.
Yastrzemski singled off Luis Perdomo (1-3) opening the sixth, advanced on Bumgarner's sacrifice and scored the go-ahead run on Donovan Solano's single to center. Solano was thrown out trying to take second.
Yastrzemski hit a two-run double in the second and doubled and scored in the fourth.
Renfroe had given the Padres a 4-2 lead with two outs in the third when he drove the first pitch he saw from Bumgarner an estimated 444 feet into the second deck in left-center. Besides Tatis, Ian Kinsler also was on base after a pinch-hit single.
The Giants tied it at 4 by getting four hits off Perdomo in the fourth, including RBI singles by Solano and pinch-hitter Alex Dickerson, who was picked up by the Giants on June 10 for a minor leaguer after being designated for assignment by the Padres.
THE SKIPPER'S LAST PORT CALL
Bochy stayed at the team hotel Saturday night rather than at his offseason home in suburban Poway because a team production crew wanted to film him walking to the ballpark for his last game at Petco Park. "A lot of people were going to ask me, what's it going to be like coming to the ballpark, going down memory lane, whatever," Bochy said. "That's the first time I've walked from the Marriott, so it was not like I went down memory lane on that one." Bochy was pushed out by the Padres after the 2006 season - when they made their last playoff appearance - and hired by San Francisco, which he led to three World Series titles between 2010 and 2014.
Giants: Rookie RHP Tyler Beede (3-4, 4.85) looks to bounce back from a rough start when he's scheduled to start Tuesday night's opener of a three-game series at Philadelphia. He allowed four runs on a career-high 10 hits, including three homers, in a 4-1 loss to the Chicago Cubs on Wednesday.
Padres: Rookie RHP Chris Paddack (6-5, 2.84) is scheduled to start Monday night in the opener of a two-game home series against Baltimore.