Create a repository for this organization. If the client is authenticated and a member of the organization, this will create a new repository in the organization. :param str name: (required), name of the repository :param str description: (optional) :param s
(self, name, description='', homepage='',
private=False, has_issues=True, has_wiki=True,
team_id=0, auto_init=False, gitignore_template='',
license_template='')
| 335 | |
| 336 | @requires_auth |
| 337 | def create_repository(self, name, description='', homepage='', |
| 338 | private=False, has_issues=True, has_wiki=True, |
| 339 | team_id=0, auto_init=False, gitignore_template='', |
| 340 | license_template=''): |
| 341 | """Create a repository for this organization. |
| 342 | |
| 343 | If the client is authenticated and a member of the organization, this |
| 344 | will create a new repository in the organization. |
| 345 | |
| 346 | :param str name: (required), name of the repository |
| 347 | :param str description: (optional) |
| 348 | :param str homepage: (optional) |
| 349 | :param bool private: (optional), If ``True``, create a private |
| 350 | repository. API default: ``False`` |
| 351 | :param bool has_issues: (optional), If ``True``, enable issues for |
| 352 | this repository. API default: ``True`` |
| 353 | :param bool has_wiki: (optional), If ``True``, enable the wiki for |
| 354 | this repository. API default: ``True`` |
| 355 | :param int team_id: (optional), id of the team that will be granted |
| 356 | access to this repository |
| 357 | :param bool auto_init: (optional), auto initialize the repository. |
| 358 | :param str gitignore_template: (optional), name of the template; this |
| 359 | is ignored if auto_int = False. |
| 360 | :param str license_template: (optional), name of the license; this |
| 361 | is ignored if auto_int = False. |
| 362 | :returns: :class:`Repository <github3.repos.Repository>` |
| 363 | |
| 364 | .. warning: ``name`` should be no longer than 100 characters |
| 365 | """ |
| 366 | url = self._build_url('repos', base_url=self._api) |
| 367 | data = {'name': name, 'description': description, |
| 368 | 'homepage': homepage, 'private': private, |
| 369 | 'has_issues': has_issues, 'has_wiki': has_wiki, |
| 370 | 'license_template': license_template, 'auto_init': auto_init, |
| 371 | 'gitignore_template': gitignore_template} |
| 372 | if int(team_id) > 0: |
| 373 | data.update({'team_id': team_id}) |
| 374 | json = self._json(self._post(url, data), 201) |
| 375 | return self._instance_or_null(Repository, json) |
| 376 | |
| 377 | @requires_auth |
| 378 | def conceal_member(self, username): |
nothing calls this directly
no test coverage detected