repositories
Class info¶
🛈 DocStrings¶
create_repository
¶
create_repository(url: str, **kwargs: Any) -> Repository
Create a proxy-wrapped repository instance from a URL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
The repository URL (e.g. 'https://github.com/owner/repo') |
required |
**kwargs
|
Any
|
Repository-specific configuration (tokens, credentials, etc.) |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
Repository |
Repository
|
Proxy-wrapped repository instance |
Raises:
| Type | Description |
|---|---|
RepositoryNotFoundError
|
If the URL isn't supported or no repository found |
Example
repo = create_repository('https://github.com/owner/repo', token='my-token') issues = repo.list_issues()