For the fourth year in a row, Bumgarner was an All-Star, though he did not pitch in the game because he had made a start two days before. He limited the Diamondbacks to a single hit on July 10 in a 4–0 shutout, striking out 14. It was Bumgarner's fourth career one-hit game, the most by a Giants pitcher since Mathewson threw six. The game was a no-hitter until Jake Lamb got a hit with one out in the seventh. During Cain's 100th win on July 31, Bumgarner pinch-hit for Cain after Cain had thrown five no-hit innings. Bumgarner hit an opposite-field leadoff double, becoming the first Giants pitcher to record a pinch-hit double since Ray Sadecki did so in 1967. Teammate Jeff Samardzija (also a fellow starter) pinch-ran for Bumgarner and scored a run as the Giants beat the Nationals 3–1.