@@ -64,6 +64,8 @@ public function findInstallations()
64
64
*/
65
65
public function getInstallation ($ installation_id )
66
66
{
67
+ $ this ->configurePreviewHeader ();
68
+
67
69
return $ this ->get ('/app/installations/ ' .rawurldecode ($ installation_id ));
68
70
}
69
71
@@ -78,6 +80,8 @@ public function getInstallation($installation_id)
78
80
*/
79
81
public function getInstallationForOrganization ($ org )
80
82
{
83
+ $ this ->configurePreviewHeader ();
84
+
81
85
return $ this ->get ('/org/ ' .rawurldecode ($ org ).'/installation ' );
82
86
}
83
87
@@ -93,6 +97,8 @@ public function getInstallationForOrganization($org)
93
97
*/
94
98
public function getInstallationForRepo ($ owner , $ repo )
95
99
{
100
+ $ this ->configurePreviewHeader ();
101
+
96
102
return $ this ->get ('/repos/ ' .rawurldecode ($ owner ).'/ ' .rawurldecode ($ repo ).'/installation ' );
97
103
}
98
104
@@ -107,6 +113,8 @@ public function getInstallationForRepo($owner, $repo)
107
113
*/
108
114
public function getInstallationForUser ($ username )
109
115
{
116
+ $ this ->configurePreviewHeader ();
117
+
110
118
return $ this ->get ('/users/ ' .rawurldecode ($ username ).'/installation ' );
111
119
}
112
120
@@ -119,6 +127,8 @@ public function getInstallationForUser($username)
119
127
*/
120
128
public function removeInstallation ($ installation_id )
121
129
{
130
+ $ this ->configurePreviewHeader ();
131
+
122
132
$ this ->delete ('/app/installations/ ' .rawurldecode ($ installation_id ));
123
133
}
124
134
0 commit comments