SAN DIEGO -- Manny Machado missed a three-run home run by inches.
Reyes hit a go-ahead, three-run homer in the seventh and Eric Hosmer added a two-run shot for the Padres, who overcame three homers by the Milwaukee Brewers in an 8-7 win Wednesday for a three-game sweep.
Reyes' shot to right-center, his 20th, came off Jeremy Jeffress (1-1) after Machado reached on a popup that dropped in among four defenders near the mound for a leadoff single and Hunter Renfroe walked.
"It felt great to get back on my thing," said Reyes, who homered for the first time since connecting twice against Philadelphia on June 4. "I've been working really hard with my hitting coach and finally I'm seeing the results."
Renfroe has 23 homers.
"It feels great. It feels amazing to be part of the history of our franchise," Reyes said. "Hunter and me, we crush a lot of baseballs and we're going to keep doing it."
Hosmer said Reyes' homer was huge.
"Fran's a big part of our offense and when he's driving the ball and swinging the bat like he is today, our offense definitely moves and he's a big reason why we have the numbers we have and we won the game today," Hosmer said.
Yasmani Grandal had given the Brewers an 8-5 lead in the top of the inning on a three-run homer against his former team, his 16th.
Craig Stammen got the last out in the eighth and escaped trouble in the ninth for his third save. He allowed Yelich's single and a walk to Braun with one out before getting Grandal to force Yelich at third. Grandal was safe when first baseman Hosmer dropped a throw from Machado. Stammen struck out Hernan Perez to end it.
San Diego took a 5-3 lead in the third on Greg Garcia's triple and Manuel Margot's single, but Milwaukee came back on Yelich's no-doubter, his MLB-leading 27th, off Matt Strahm in the fifth and then Grandal's shot during a bullpen implosion. Brad Wieck allowed singles by pinch-hitter Ben Gamel and Lorenzo Cain opening the seventh before Gerardo Reyes (4-0) allowed Grandal's shot with two outs.
Machado's flyball off Zach Davies bounced off the top of the fence in left-center and back onto the field with one out in the second. The umpires never signaled home run, but the Padres' scoreboard operators blew a ship horn that denotes a homer and Hosmer, who had been on first, eased into a trot and was tagged before he got to third. He continued on to the plate, perhaps unaware of what was going on. Fernando Tatis Jr. was on third and scored to put the Padres ahead 3-1.
"It was my fault," Hosmer said. "I saw the ball go over the fence. I didn't realize there's a second wall back there. Thought it was a homer and kept running like it was. Just a dumb mistake on my part and luckily it didn't cost us the ballgame."
After a review of 2 minutes, 55 seconds, Machado was told to stay at second and Hosmer was confirmed as being out. The official scorer credited Machado with an RBI single since Hosmer was tagged before he got to third.
"To me it hit the wall and came back," said Davies, who allowed five runs and nine hits in 2 2/3 innings. "Cain didn't make any hesitation or anything. It seemed like he thought it was off the wall too at the top of the wall and came back. It's a lucky situation and got out of it with just the one run, but everything just kept piling on after that."
Said manager Craig Counsell: "We caught a break there, I mean Hosmer stopped running.
"We had a really good offensive day," Counsell added. "We swung the bat really well today. I thought we could have scored more runs really."
The Brewers tied it in the third on Braun's two-run double off Strahm. The Padres regained the lead in the bottom of the inning on Garcia's triple and Margot's RBI single.
Yelich homered into the seats in right-center with two outs in the fifth.
Braun homered with two outs in the first, his 12th.
Hosmer hit a two-run homer in the first, his 11th.
WWE superstar John Cena paid his $1 bet with Padres rookie Logan Allen near the mound just before the game. The two became friends after a chance meeting at a Tampa steakhouse in January 2018. They had a bet whether Allen, acquired by San Diego from Boston in the deal for Craig Kimbrel in 2015, would make it to the majors. Allen won his debut Tuesday night, throwing seven shutout innings.
Padres: LHP Eric Lauer (5-6, 4.60) is scheduled to start Friday night's opener of a three-game series at Pittsburgh. The Pirates are set to start Joe Musgrove (4-7, 4.87), who beat his hometown Padres 6-4 on May 19 at Petco Park.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Justin Bour agrees to play for Japan's Hanshin Tigers, report says
Justin Bour, a 31-year-old first baseman who played for the Angels last season, has reached a basic agreement with the Hanshin Tigers of Japan's Central League, according to the Kyodo News agency.
Seymour Siwoff, longtime Elias Sports Bureau owner, dies at 99
Seymour Siwoff, who owned the Elias Sports Bureau for more than 70 years before selling it to his grandson in March 2018, died Friday at age 99.
Exemptions for ADHD drugs in MLB drop to lowest in decade
Major League Baseball issued 91 therapeutic use exemptions for ADHD drugs in the year ending with the 2019 World Series, the lowest level since the sport started issuing annual reports in 2008.
Mr. Niche Guy: The best free-agent fits for very specific needs
Pining for a pitcher who can induce double plays? How about a hitter who can make contact in key spots? Here are the best options out there to fill holes this winter.
Source: Catcher Yan Gomes agrees to 2-year, $10M deal with Nationals
Veteran catcher Yan Gomes has agreed to a one-year deal to return to the Nationals, sources told ESPN.
Reports: Baltimore Orioles put Jonathan Villar on outright waivers
The Orioles put Jonathan Villar, who had a career year last season, on waivers after they were unable to find a suitable trade partner for him before Monday's non-tender deadline, according to a MASN Sports report.