@@ -120,9 +120,9 @@ protected function getOptions()
120120 return array (
121121 'type ' => array (
122122 'required ' => true ,
123- 'description ' => "The integration type ('bitbucket', ' github', 'hipchat', or 'webhook') " ,
123+ 'description ' => "The integration type ('github', 'hipchat', or 'webhook') " ,
124124 'validator ' => function ($ value ) {
125- return in_array ($ value , array ('bitbucket ' , ' github ' , 'hipchat ' , 'webhook ' ));
125+ return in_array ($ value , array ('github ' , 'hipchat ' , 'webhook ' ));
126126 },
127127 ),
128128 'token ' => array (
@@ -131,22 +131,10 @@ protected function getOptions()
131131 'description ' => 'GitHub or HipChat: An OAuth token for the integration ' ,
132132 'validator ' => $ tokenValidator ,
133133 ),
134- 'consumer_key ' => array (
135- 'for types ' => array ('bitbucket ' ),
136- 'required ' => true ,
137- 'description ' => 'BitBucket: The OAuth consumer key ' ,
138- 'validator ' => $ tokenValidator ,
139- ),
140- 'consumer_secret ' => array (
141- 'for types ' => array ('bitbucket ' ),
142- 'required ' => true ,
143- 'description ' => 'BitBucket: The OAuth consumer secret ' ,
144- 'validator ' => $ tokenValidator ,
145- ),
146134 'repository ' => array (
147- 'for types ' => array ('bitbucket ' , ' github ' ),
135+ 'for types ' => array ('github ' ),
148136 'required ' => true ,
149- 'description ' => 'GitHub or BitBucket : the repository to track (in the form \'user/repo \') ' ,
137+ 'description ' => 'GitHub: the repository to track (in the form \'user/repo \') ' ,
150138 'validator ' => function ($ string ) {
151139 return substr_count ($ string , '/ ' , 1 ) === 1 ;
152140 },
@@ -159,10 +147,10 @@ protected function getOptions()
159147 'options ' => $ boolOptions ,
160148 ),
161149 'fetch_branches ' => array (
162- 'for types ' => array ('bitbucket ' , ' github ' ),
150+ 'for types ' => array ('github ' ),
163151 'default ' => true ,
164152 'normalizer ' => $ boolNormalizer ,
165- 'description ' => 'GitHub or BitBucket : track branches ' ,
153+ 'description ' => 'GitHub: track branches ' ,
166154 'options ' => $ boolOptions ,
167155 ),
168156 'room ' => array (
@@ -212,6 +200,7 @@ protected function formatIntegrationData(Integration $integration)
212200 $ payloadUrl = $ integration ->hasLink ('#hook ' ) ? $ integration ->getLink ('#hook ' , true ) : '[unknown] ' ;
213201 $ output = "Repository: " . $ properties ['repository ' ]
214202 . "\nFetch branches: " . ($ properties ['fetch_branches ' ] ? 'yes ' : 'no ' )
203+ . "\nPrune branches: " . (!empty ($ properties ['prune_branches ' ]) ? 'yes ' : 'no ' )
215204 . "\nPayload URL: " . $ payloadUrl ;
216205 } elseif ($ properties ['type ' ] == 'hipchat ' ) {
217206 $ output = "Room ID: " . $ properties ['room ' ]
0 commit comments