Cardinals: Paul Goldschmidt homered twice, and the Cardinals overcame a five-run deficit to beat the host Brewers 8-5 and extend their longest winning streak in 39 years to 12 games. On a day Adam Wainwright faltered early, the Cardinals trailed 5-0 before rallying with one run in the fifth, four in the seventh, two in the eighth and one in the ninth. The Cardinals moved five games ahead of the Reds and Phillies, who both played later Thursday, for the second NL wild card. The Cardinals are on their longest winning streak since April 11-24, 1982, and are two shy of the franchise record set in 1935. The Brewers have lost five in a row since clinching its fourth consecutive playoff berth on Sept. 18, including four defeats to the Cardinals. Wainwright joined Hall of Famer Bob Gibson as the only Cardinals pitchers with 2,000 strikeouts, fanning Luis Urías in the fourth. The 40-year-old right-hander became the ninth active pitcher with 2,000.

Diamondbacks: With a little over a week left in the season and his team suffering over 100 losses, Diamondbacks manager Torey Lovullo was given a one-year contract extension through 2022. The deal includes a club option for 2023. Lovullo, 56, replaced Chip Hale as Diamondbacks manager after the 2016 season and was voted NL manager of the year in 2017, when they went 93-69, beat the Rockies in the NL wild card game and were swept by the Dodgers in the NLDS. The Diamondbacks slipped to 82-80 the following season, went 85-77 in 2019 and 25-35 during the pandemic-shortened 2020 season....Carson Kelly hit a tying three-run homer in a five-run seventh inning, Daulton Varsho followed with a go-ahead double and the last-place Arizona Diamondbacks beat the NL East-leading Atlanta Braves 6-4 Thursday.

Seeking its fourth straight division title, Atlanta saw its lead cut to 2 1/2 games over Philadelphia, which played Pittsburgh later Thursday. The Braves had won four straight games.

Athletics: Chris Bassitt pitched three scoreless innings less than a month after surgery to repair facial fractures, and the Seattle Mariners rallied against Oakland’s bullpen for a 6-5 victory Thursday and a four-game sweep that damaged the Athletics’ wild-card hopes.

Seattle matched its season high with its fifth straight win, won its ninth in a row over the A’s and moved within two games of the idle Yankees for the second AL wild-card spot with nine games remaining. Oakland lost its season-worst sixth straight game and fell four games back of New York.

Bassitt, a 32-year-old right-hander, was struck by a 100 mph line drive off the bat of Brian Goodwin of the Chicago White Sox on Aug. 17 and had surgery seven days later on three fractures.

He took the field to a standing ovation from the crowd of 4,966 and allowed one hit in three scoreless innings — J.P. Crawford’s leadoff single — struck out four and walked one.