File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ public function showById($id)
187
187
* @param bool $hasDownloads `true` to enable downloads for this repository, `false` to disable them
188
188
* @param int $teamId The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization.
189
189
* @param bool $autoInit `true` to create an initial commit with empty README, `false` for no initial commit
190
+ * @param bool $hasProjects `true` to enable projects for this repository or false to disable them.
190
191
*
191
192
* @return array returns repository data
192
193
*/
@@ -200,7 +201,8 @@ public function create(
200
201
$ hasUncyclo = false ,
201
202
$ hasDownloads = false ,
202
203
$ teamId = null ,
203
- $ autoInit = false
204
+ $ autoInit = false ,
205
+ $ hasProjects = true
204
206
) {
205
207
$ path = null !== $ organization ? '/orgs/ ' .$ organization .'/repos ' : '/user/repos ' ;
206
208
@@ -213,6 +215,7 @@ public function create(
213
215
'has_wiki ' => $ hasUncyclo ,
214
216
'has_downloads ' => $ hasDownloads ,
215
217
'auto_init ' => $ autoInit ,
218
+ 'has_projects ' => $ hasProjects ,
216
219
];
217
220
218
221
if ($ organization && $ teamId ) {
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ public function shouldCreateRepositoryUsingNameOnly()
135
135
'has_wiki ' => false ,
136
136
'has_downloads ' => false ,
137
137
'auto_init ' => false ,
138
+ 'has_projects ' => true ,
138
139
])
139
140
->will ($ this ->returnValue ($ expectedArray ));
140
141
@@ -160,6 +161,7 @@ public function shouldCreateRepositoryForOrganization()
160
161
'has_wiki ' => false ,
161
162
'has_downloads ' => false ,
162
163
'auto_init ' => false ,
164
+ 'has_projects ' => true ,
163
165
])
164
166
->will ($ this ->returnValue ($ expectedArray ));
165
167
@@ -329,6 +331,7 @@ public function shouldCreateUsingAllParams()
329
331
'has_wiki ' => false ,
330
332
'has_downloads ' => false ,
331
333
'auto_init ' => false ,
334
+ 'has_projects ' => true ,
332
335
])
333
336
->will ($ this ->returnValue ($ expectedArray ));
334
337
You can’t perform that action at this time.
0 commit comments