SAN DIEGO -- Padres manager Andy Green told Franmil Reyes that he'd have the winning hit Thursday night.
Reyes sure did, and in a big way. The rookie hit his first career walkoff homer with two outs in the 13th inning to give the Padres a 3-2 victory over the Colorado Rockies.
Reyes connected to left-center on a 1-1 pitch from Bryan Shaw (4-6) for his 12th homer. It was only the sixth hit for San Diego. The Rockies had only three hits against seven Padres pitchers.
"I actually told him before the game that he was going to get the game-winning hit. I probably say that to a lot of bench guys," Green said. "It doesn't always happen like that. He said we were going to score 10 runs. I was right, he was wrong. But a great at-bat. The way that ball was hit I didn't think it was going out but he had enough to get it out to a big part of the park late at night. It was a great swing."
Reyes, who entered as a defensive substitution in the 11th, said it felt "very, very good. Really excited. I really wasn't looking for a pitch. I was picking and choosing my zone. I focused on one little zone. If he throws it there, it was the damage I was looking for. The pitch I homered on, it was just hanging. I see it really clear."
The Padres had two other chances to win it before Reyes finally did. They had runners on first and second with no outs in the 11th and failed to score. Rookie Luis Urias, who went 3 for 5 against Seattle on Wednesday in just his second big league game, popped up a bunt, and Wil Myers grounded into a double play.
They had runners on first and second with one out in the ninth before Hunter Renfroe grounded into a double play.
Myers committed three errors at third base and struck out three times. The Padres had 16 strikeouts.
The Rockies stranded 11 runners.
Robert Stock (1-1) pitched three innings for his first major league win, allowing just one hit and one walk.
"It's a great feeling for us to take games away from these playoff contenders because to us it feels like big, important games because we know for them it's big, important games," said Stock, a 28-year-old rookie. "It's extra sweet against a team that's in our division."
Rockies starter German Marquez struck out a career-high 13 in eight innings while allowing two runs and two hits, with one walk.
"I just wanted to keep the game close," Marquez said. "Close enough that we had a chance to win, and I was feeling good and I was going for it."
Colorado trails Arizona by 1 1/2 games in the NL West after the Diamondbacks beat the Dodgers 3-1 on Thursday night. Los Angeles is two games behind Arizona.
"It was just a bad night," Rockies manager Bud Black said. "That's what you chalk it up to. ... It just wasn't a good night offensively, for both teams. We shut them down, they shut us down, there were pitches being made. We just didn't have the big hit at the right time. We threatened a couple times, but we couldn't get the hit."
Rookie lefty Eric Lauer, who came off the disabled list to make the start, held the Rockies hitless on 81 pitches through five innings before manager Andy Green turned it over to another rookie, Trey Wingenter, with the Padres leading 2-1.
Wingenter walked Trevor Story opening the sixth and then allowed a single to right by Matt Holliday. He struck out Carlos Gonzalez before Story scored on a fielder's choice by Ian Desmond to tie the game at 2.
The Padres remain the only team in the majors without a no-hitter.
Lauer, who had been on the DL with a strained left forearm, struck out two and walked two.
The Rockies got an unearned run back in an ugly fourth inning for the Padres, when Lauer hit Story with a pitch and then walked Holliday with one out, followed by consecutive two-out errors by Myers, who recently was moved from the outfield to third base. Myers' first error allowed Story to score, and his second error loaded the bases before Lauer struck out Marquez to end the inning.
Rockies: RHP Antonio Senzatela (4-4, 5.24) has made four appearances against San Diego this year, going 1-0 with a 6.14 ERA.
Padres: Rookie RHP Brett Kennedy (0-2, 7.58) is scheduled to make his fifth career start.
For more AP baseball coverage: https://apnews.com/tag/MLBbaseball and https://twitter.com/AP-Sports
How Andrew McCutchen can beat market trends for older free agents
Last winter was tough for older free-agent position players, but even at 32 Andrew McCutchen could snap that cold spell.
Babe Ruth, Roger Staubach, Alan Page to receive Presidential Medal of Freedom
Babe Ruth, Roger Staubach and Alan Page will be among the seven people to receive the Presidential Medal of Freedom from Donald Trump.
AL Central offseason preview: Will Indians actually trade Corey Kluber?
With Cleveland entertaining offers for its ace, the White Sox and Twins have enough payroll flexibility to be big-time players in free agency.
Twins' Joe Mauer on retirement: 'Risk of concussion is always there'
Twins veteran Joe Mauer, the 2009 AL MVP and the only catcher to ever win three batting titles, has announced his retirement. The six-time All-Star played 15 seasons.
J.P. Ricciardi leaving Mets after eight seasons
J.P. Ricciardi, who has served as special assistant to Mets GM Sandy Alderson for eight seasons, is leaving the team and is free to take a job with other teams.
Olney: Cubs 'more open to talks' for Bryant
ESPN's Buster Olney reports that the Cubs will be listening to offers for former MVP Kris Bryant and may trade him as soon as this winter.