The Diamondbacks’ starters went 24 consecutive games without a win. All of a sudden, they can’t lose.

Left-hander Wade Miley threw eight innings of one-run ball and drove in three runs in the Diamondbacks’ 11-1 victory over the Colorado Rockies at Chase Field. It was the Diamondbacks’ fourth consecutive win and the third time in four games their starter has gotten the victory after being shut out from June 6 to July 2.

Arizona extended its lead in the National League West to a season-high 41/2 games.

The hitting stars? Pick one. Paul Goldschmidt, named to the National League All-Star Game earlier in the day, celebrated with a monster two-run homer to left field; Martin Prado hit a two-run shot; Miguel Montero a three-run homer; and Cody Ross had a career-high five hits, tying a franchise record. He also scored three runs.

It was Miley who stole the show, though. He allowed just five hits and one walk in improving his record to 5-7 and dropping his ERA from 4.29 to 4.07. Rockies outfielder Carlos Gonzalez had three hits against Miley, including a solo homer; the rest of Colorado’s lineup was 2-for-22. It was the third consecutive start Miley has allowed two earned runs or fewer.

“His mechanics are better. He’s not fighting himself,” Gibson said. “He’s able to throw the ball to either side. He threw some good change-ups and he had his slider again, when the ball goes down and has depth and angle.”

Miley said the key to his outing was throwing strikes with his fastball and getting ahead in the count.

“I’m not thinking,” he said. “I’m just going out and trying to pitch.”

Miley started the Diamondbacks’ carousel around the bases, as well.

After a double by Ross and walks to Gerardo Parra and Didi Gregorius loaded the bases in the bottom of the second, Miley sliced an offering from Colorado starter Drew Pomeranz into left field for a three-run double. The three RBIs were one more than Miley had all season.

“That was clutch,” Gibson said.

Goldschmidt made it 5-0 in the bottom of the third when he launched a massive blast at least 10 rows deep in left, scoring Aaron Hill. It was a career-best 21st homer for Goldschmidt and his 72nd and 73rd RBIs. Prado extended the lead to 8-1 with his homer off reliever Manny Corpas in the seventh.

Every position player in the Arizona lineup scored at least one run.

“Swinging bats well makes it a lot easier to pitch when you have runs on the board,” Gibson said. “You don’t have to try to make every pitch perfect.”

Gifted with the big lead, Miley cruised through the Rockies’ lineup. From the fourth through seventh innings only three Rockies were on base, and with the exception of Gonzalez’s homer no Colorado hitter reached third base.