@@ -64,6 +64,8 @@ public function findInstallations()
6464 */
6565 public function getInstallation ($ installation_id )
6666 {
67+ $ this ->configurePreviewHeader ();
68+
6769 return $ this ->get ('/app/installations/ ' .rawurldecode ($ installation_id ));
6870 }
6971
@@ -78,6 +80,8 @@ public function getInstallation($installation_id)
7880 */
7981 public function getInstallationForOrganization ($ org )
8082 {
83+ $ this ->configurePreviewHeader ();
84+
8185 return $ this ->get ('/org/ ' .rawurldecode ($ org ).'/installation ' );
8286 }
8387
@@ -93,6 +97,8 @@ public function getInstallationForOrganization($org)
9397 */
9498 public function getInstallationForRepo ($ owner , $ repo )
9599 {
100+ $ this ->configurePreviewHeader ();
101+
96102 return $ this ->get ('/repos/ ' .rawurldecode ($ owner ).'/ ' .rawurldecode ($ repo ).'/installation ' );
97103 }
98104
@@ -107,6 +113,8 @@ public function getInstallationForRepo($owner, $repo)
107113 */
108114 public function getInstallationForUser ($ username )
109115 {
116+ $ this ->configurePreviewHeader ();
117+
110118 return $ this ->get ('/users/ ' .rawurldecode ($ username ).'/installation ' );
111119 }
112120
@@ -119,6 +127,8 @@ public function getInstallationForUser($username)
119127 */
120128 public function removeInstallation ($ installation_id )
121129 {
130+ $ this ->configurePreviewHeader ();
131+
122132 $ this ->delete ('/app/installations/ ' .rawurldecode ($ installation_id ));
123133 }
124134
0 commit comments