providers
Class info¶
Re-exported classes¶
| Class | Module | Description |
|---|---|---|
| AioGitHubRepository | githarbor.providers.aiogithubapi_provider.repository | GitHub repository implementation using aiogithubapi. |
| AzureRepository | githarbor.providers.azure_provider.repository | Azure DevOps repository implementation. |
| GitHubRepository | githarbor.providers.github_provider.repository | GitHub repository implementation. |
| GitLabRepository | githarbor.providers.gitlab_provider.repository | GitLab repository implementation. |
| GiteaRepository | githarbor.providers.gitea_provider.repository | Gitea repository implementation. |
| LocalRepository | githarbor.providers.local_provider.repository | Local Git repository implementation using GitPython. |
| PyGiteaRepository | githarbor.providers.pygitea_provider.repository | PyGitea repository implementation using py-gitea library. |
🛈 DocStrings¶
Githarbor providers package.
AioGitHubRepository
¶
Bases: BaseRepository
GitHub repository implementation using aiogithubapi.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |
__init__
¶
Initialize GitHub API client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Repository owner |
required |
name
|
str
|
Repository name |
required |
token
|
str | None
|
GitHub access token |
None
|
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
create_issue_async
async
¶
create_issue_async(
title: str, body: str, labels: list[str] | None = None, assignees: list[str] | None = None
) -> Issue
Create a new issue.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
download_async
async
¶
download_async(
path: str | PathLike[str], destination: JoinablePathLike, recursive: bool = False
) -> None
Download repository content.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
from_url
classmethod
¶
from_url(url: str, **kwargs: Any) -> AioGitHubRepository
Create instance from URL.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
get_issue_async
async
¶
get_issue_async(issue_id: int) -> Issue
Get issue by number.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
get_latest_release_async
async
¶
get_latest_release_async(
include_drafts: bool = False, include_prereleases: bool = False
) -> Release
Get latest release.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
get_pull_request_async
async
¶
get_pull_request_async(number: int) -> PullRequest
Get pull request by number.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
get_repo_user_async
async
¶
get_repo_user_async() -> User
Get repository owner information.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
list_issues_async
async
¶
list_issues_async(state: IssueState = 'open') -> list[Issue]
List repository issues.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
list_pull_requests_async
async
¶
list_pull_requests_async(state: PullRequestState = 'open') -> list[PullRequest]
List pull requests.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
list_releases_async
async
¶
list_releases_async(
include_drafts: bool = False, include_prereleases: bool = False, limit: int | None = None
) -> list[Release]
List releases.
Source code in src/githarbor/providers/aiogithubapi_provider/repository.py
AzureRepository
¶
Bases: BaseRepository
Azure DevOps repository implementation.
Source code in src/githarbor/providers/azure_provider/repository.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | |
__init__
¶
Initialize Azure DevOps repository.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
organization
|
str
|
Azure DevOps organization name |
required |
project
|
str
|
Project name |
required |
name
|
str
|
Repository name |
required |
token
|
str | None
|
Personal access token for authentication |
None
|
Raises:
| Type | Description |
|---|---|
AuthenticationError
|
If authentication fails |
ValueError
|
If token is missing |
Source code in src/githarbor/providers/azure_provider/repository.py
create_issue
¶
create_issue(
title: str, body: str, labels: list[str] | None = None, assignees: list[str] | None = None
) -> Issue
Create a new issue.
Source code in src/githarbor/providers/azure_provider/repository.py
create_pull_request
¶
create_pull_request(
title: str, body: str, head_branch: str, base_branch: str, draft: bool = False
) -> PullRequest
Create a pull request.
Source code in src/githarbor/providers/azure_provider/repository.py
download
¶
Download file(s) from repository.
Source code in src/githarbor/providers/azure_provider/repository.py
from_url
classmethod
¶
from_url(url: str, **kwargs: Any) -> AzureRepository
Create from URL.
Example URL: 'https://dev.azure.com/org/project/_git/repo'
Source code in src/githarbor/providers/azure_provider/repository.py
get_branch
¶
get_branch(name: str) -> Branch
Get branch information.
Source code in src/githarbor/providers/azure_provider/repository.py
get_commit
¶
get_commit(sha: str) -> Commit
Get commit by SHA.
Source code in src/githarbor/providers/azure_provider/repository.py
get_issue
¶
get_issue(issue_id: int) -> Issue
Get issue by ID (work item in Azure DevOps).
Source code in src/githarbor/providers/azure_provider/repository.py
get_pull_request
¶
get_pull_request(number: int) -> PullRequest
Get pull request by number.
Source code in src/githarbor/providers/azure_provider/repository.py
get_user
¶
get_user(username: str | None = None) -> User
Get user information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
username
|
str | None
|
Username to look up (defaults to repository owner/organization). |
None
|
Returns:
| Type | Description |
|---|---|
User
|
User model with user information. |
Source code in src/githarbor/providers/azure_provider/repository.py
iter_files
¶
Iterate over repository files.
Source code in src/githarbor/providers/azure_provider/repository.py
list_commits
¶
list_commits(
branch: str | None = None,
since: datetime | None = None,
until: datetime | None = None,
author: str | None = None,
path: str | None = None,
max_results: int | None = None,
) -> list[Commit]
List repository commits with optional filters.
Source code in src/githarbor/providers/azure_provider/repository.py
list_issues
¶
list_issues(state: IssueState = 'open') -> list[Issue]
List issues (work items in Azure DevOps).
Source code in src/githarbor/providers/azure_provider/repository.py
list_pull_requests
¶
list_pull_requests(state: PullRequestState = 'open') -> list[PullRequest]
List pull requests.
Source code in src/githarbor/providers/azure_provider/repository.py
GitHubKitRepository
¶
Bases: BaseRepository
GitHub repository implementation using GitHubKit.
Source code in src/githarbor/providers/githubkit_provider/repository.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | |
__init__
¶
Initialize GitHub API client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
owner
|
str
|
Repository owner |
required |
name
|
str
|
Repository name |
required |
token
|
str | None
|
GitHub access token |
None
|
Raises:
| Type | Description |
|---|---|
AuthenticationError
|
If authentication fails |
Source code in src/githarbor/providers/githubkit_provider/repository.py
compare_branches_async
async
¶
compare_branches_async(
base: str,
head: str,
include_commits: bool = True,
include_files: bool = True,
include_stats: bool = True,
) -> dict[str, Any]
Compare two branches.
Source code in src/githarbor/providers/githubkit_provider/repository.py
create_branch_async
async
¶
create_branch_async(name: str, base_commit: str) -> Branch
Create a new branch at the specified commit.
Source code in src/githarbor/providers/githubkit_provider/repository.py
create_issue_async
async
¶
create_issue_async(
title: str, body: str, labels: list[str] | None = None, assignees: list[str] | None = None
) -> Issue
Create a new issue.
Source code in src/githarbor/providers/githubkit_provider/repository.py
download_async
async
¶
download_async(
path: str | PathLike[str], destination: JoinablePathLike, recursive: bool = False
) -> None
Download repository content.
Source code in src/githarbor/providers/githubkit_provider/repository.py
from_url
classmethod
¶
from_url(url: str, **kwargs: Any) -> GitHubKitRepository
Create instance from URL.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_branch_async
async
¶
get_branch_async(name: str) -> Branch
Get branch information.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_commit_async
async
¶
get_commit_async(sha: str) -> Commit
Get commit by SHA.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_issue_async
async
¶
get_issue_async(issue_id: int) -> Issue
Get issue by ID.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_languages_async
async
¶
Get repository language statistics.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_latest_release_async
async
¶
get_latest_release_async(
include_drafts: bool = False, include_prereleases: bool = False
) -> Release
Get latest release.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_pull_request_async
async
¶
get_pull_request_async(number: int) -> PullRequest
Get pull request by number.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_release_async
async
¶
get_release_async(tag: str) -> Release
Get release by tag.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_repo_user_async
async
¶
get_repo_user_async() -> User
Get repository owner information.
Source code in src/githarbor/providers/githubkit_provider/repository.py
get_tag_async
async
¶
get_tag_async(name: str) -> Tag
Get tag by name.
Source code in src/githarbor/providers/githubkit_provider/repository.py
list_commits_async
async
¶
list_commits_async(
branch: str | None = None,
since: datetime | None = None,
until: datetime | None = None,
author: str | None = None,
path: str | None = None,
max_results: int | None = None,
) -> list[Commit]
List repository commits.
Source code in src/githarbor/providers/githubkit_provider/repository.py
list_issues_async
async
¶
list_issues_async(state: IssueState = 'open') -> list[Issue]
List repository issues.
Source code in src/githarbor/providers/githubkit_provider/repository.py
list_pull_requests_async
async
¶
list_pull_requests_async(state: PullRequestState = 'open') -> list[PullRequest]
List pull requests.
Source code in src/githarbor/providers/githubkit_provider/repository.py
list_releases_async
async
¶
list_releases_async(
include_drafts: bool = False, include_prereleases: bool = False, limit: int | None = None
) -> list[Release]
List releases.
Source code in src/githarbor/providers/githubkit_provider/repository.py
search_commits_async
async
¶
search_commits_async(
query: str, branch: str | None = None, path: str | None = None, max_results: int | None = None
) -> list[Commit]
Search repository commits.
Source code in src/githarbor/providers/githubkit_provider/repository.py
GitHubRepository
¶
Bases: BaseRepository
GitHub repository implementation.
Source code in src/githarbor/providers/github_provider/repository.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 | |
__init__
¶
Initialize GitHub repository.
Source code in src/githarbor/providers/github_provider/repository.py
create_branch
¶
create_branch(name: str, base_commit: str) -> Branch
Create a new branch at the specified commit.
Source code in src/githarbor/providers/github_provider/repository.py
create_issue
¶
create_issue(
title: str, body: str, labels: list[str] | None = None, assignees: list[str] | None = None
) -> Issue
Create a new issue.
Source code in src/githarbor/providers/github_provider/repository.py
create_pull_request_from_diff
¶
create_pull_request_from_diff(
title: str,
body: str,
base_branch: str,
diff: str,
head_branch: str | None = None,
draft: bool = False,
) -> PullRequest
Create a pull request from a diff string.
Source code in src/githarbor/providers/github_provider/repository.py
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 | |
from_url
classmethod
¶
from_url(url: str, **kwargs: Any) -> GitHubRepository
Create from URL like 'https://github.com/owner/repo'.
Source code in src/githarbor/providers/github_provider/repository.py
get_tag
¶
get_tag(name: str) -> Tag
Get a specific tag by name.
Source code in src/githarbor/providers/github_provider/repository.py
GitLabRepository
¶
Bases: BaseRepository
GitLab repository implementation.
Source code in src/githarbor/providers/gitlab_provider/repository.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 | |
create_branch
¶
create_branch(name: str, base_commit: str) -> Branch
Create a new branch at the specified commit.
Source code in src/githarbor/providers/gitlab_provider/repository.py
create_issue
¶
create_issue(
title: str, body: str, labels: list[str] | None = None, assignees: list[str] | None = None
) -> Issue
Create a new issue.
Source code in src/githarbor/providers/gitlab_provider/repository.py
from_url
classmethod
¶
from_url(url: str, **kwargs: Any) -> GitLabRepository
Create from URL like 'https://gitlab.com/owner/repo'.
Source code in src/githarbor/providers/gitlab_provider/repository.py
get_repo_user
¶
get_repo_user() -> User
Get user (repository owner) information.
Source code in src/githarbor/providers/gitlab_provider/repository.py
GiteaRepository
¶
Bases: BaseRepository
Gitea repository implementation.
Source code in src/githarbor/providers/gitea_provider/repository.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 | |
create_issue
¶
create_issue(
title: str, body: str, labels: list[str] | None = None, assignees: list[str] | None = None
) -> Issue
Create a new issue.
Source code in src/githarbor/providers/gitea_provider/repository.py
download
¶
Download repository contents.
Source code in src/githarbor/providers/gitea_provider/repository.py
from_url
classmethod
¶
from_url(url: str, **kwargs: Any) -> GiteaRepository
Create from URL like 'https://gitea.com/owner/repo'.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_branch
¶
get_branch(name: str) -> Branch
Get a specific branch by name.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_commit
¶
get_commit(sha: str) -> Commit
Get a specific commit by SHA.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_contributors
¶
get_contributors(
sort_by: Literal["commits", "name", "date"] = "commits", limit: int | None = None
) -> list[User]
Get repository contributors.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_issue
¶
get_issue(issue_id: int) -> Issue
Get a specific issue by ID.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_latest_release
¶
get_latest_release(include_drafts: bool = False, include_prereleases: bool = False) -> Release
Get the latest repository release.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_pull_request
¶
get_pull_request(number: int) -> PullRequest
Get a specific pull request by number.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_release
¶
get_release(tag: str) -> Release
Get a specific release by tag.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_repo_user
¶
get_repo_user() -> User
Get user (repository owner) information.
Source code in src/githarbor/providers/gitea_provider/repository.py
get_tag
¶
get_tag(name: str) -> Tag
Get a specific repository tag.
Source code in src/githarbor/providers/gitea_provider/repository.py
iter_files
¶
Iterate over repository files.
Source code in src/githarbor/providers/gitea_provider/repository.py
list_commits
¶
list_commits(
branch: str | None = None,
since: datetime | None = None,
until: datetime | None = None,
author: str | None = None,
path: str | None = None,
max_results: int | None = None,
) -> list[Commit]
List repository commits with optional filters.
Source code in src/githarbor/providers/gitea_provider/repository.py
list_issues
¶
list_issues(state: IssueState = 'open') -> list[Issue]
List repository issues.
Source code in src/githarbor/providers/gitea_provider/repository.py
list_pull_requests
¶
list_pull_requests(state: PullRequestState = 'open') -> list[PullRequest]
List pull requests.
Source code in src/githarbor/providers/gitea_provider/repository.py
list_releases
¶
list_releases(
include_drafts: bool = False, include_prereleases: bool = False, limit: int | None = None
) -> list[Release]
List repository releases.
Source code in src/githarbor/providers/gitea_provider/repository.py
search_commits
¶
search_commits(
query: str, branch: str | None = None, path: str | None = None, max_results: int | None = None
) -> list[Commit]
Search repository commits.
Source code in src/githarbor/providers/gitea_provider/repository.py
LocalRepository
¶
Bases: BaseRepository
Local Git repository implementation using GitPython.
Source code in src/githarbor/providers/local_provider/repository.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |
PyGiteaRepository
¶
Bases: BaseRepository
PyGitea repository implementation using py-gitea library.
Source code in src/githarbor/providers/pygitea_provider/repository.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 | |
create_branch
¶
create_branch(name: str, base_commit: str) -> Branch
Create a new branch.
Source code in src/githarbor/providers/pygitea_provider/repository.py
create_issue
¶
create_issue(
title: str, body: str, labels: list[str] | None = None, assignees: list[str] | None = None
) -> Issue
Create a new issue.
Source code in src/githarbor/providers/pygitea_provider/repository.py
download
¶
Download repository contents.
Source code in src/githarbor/providers/pygitea_provider/repository.py
from_url
classmethod
¶
from_url(url: str, **kwargs: Any) -> PyGiteaRepository
Create from URL like 'https://gitea.com/owner/repo'.
Source code in src/githarbor/providers/pygitea_provider/repository.py
get_branch
¶
get_branch(name: str) -> Branch
Get a specific branch by name.
Source code in src/githarbor/providers/pygitea_provider/repository.py
get_commit
¶
get_commit(sha: str) -> Commit
Get a specific commit by SHA.
Source code in src/githarbor/providers/pygitea_provider/repository.py
get_contributors
¶
get_contributors(
sort_by: Literal["commits", "name", "date"] = "commits", limit: int | None = None
) -> list[User]
Get repository contributors.
Source code in src/githarbor/providers/pygitea_provider/repository.py
get_issue
¶
get_issue(issue_id: int) -> Issue
Get a specific issue by ID.
Source code in src/githarbor/providers/pygitea_provider/repository.py
get_pull_request
¶
get_pull_request(number: int) -> PullRequest
Get a specific pull request by number.
Source code in src/githarbor/providers/pygitea_provider/repository.py
get_repo_user
¶
get_repo_user() -> User
Get user (repository owner) information.
Source code in src/githarbor/providers/pygitea_provider/repository.py
get_tag
¶
get_tag(name: str) -> Tag
Get a specific repository tag.
Source code in src/githarbor/providers/pygitea_provider/repository.py
iter_files
¶
Iterate over repository files.
Source code in src/githarbor/providers/pygitea_provider/repository.py
list_branches
¶
list_branches() -> list[Branch]
List repository branches.
Source code in src/githarbor/providers/pygitea_provider/repository.py
list_commits
¶
list_commits(
branch: str | None = None,
since: datetime | None = None,
until: datetime | None = None,
author: str | None = None,
path: str | None = None,
max_results: int | None = None,
) -> list[Commit]
List repository commits with optional filters.
Source code in src/githarbor/providers/pygitea_provider/repository.py
list_issues
¶
list_issues(state: IssueState = 'open') -> list[Issue]
List repository issues.
Source code in src/githarbor/providers/pygitea_provider/repository.py
list_pull_requests
¶
list_pull_requests(state: PullRequestState = 'open') -> list[PullRequest]
List pull requests.
Source code in src/githarbor/providers/pygitea_provider/repository.py
search_commits
¶
search_commits(
query: str, branch: str | None = None, path: str | None = None, max_results: int | None = None
) -> list[Commit]
Search repository commits - limited support in py-gitea.