Jonathan Leitschuh and Enrico Minack
f4e9dcb341
Update MAINTAINERS ( #2545 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-06-21 07:23:55 +08:00
Enrico Minack
006766f985
Link to stable docs, update introduction in package used by pypi, move auth arg front ( #2557 )
2023-06-20 15:04:04 +02:00
Jonathan Greg and Enrico Minack
517ad33654
Add Webhook Deliveries ( #2508 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-06-20 08:49:02 +02:00
Jeppe Fihl-Pearson and Enrico Minack
804c3107c8
Add support for workflow jobs and steps ( #1951 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-06-20 14:37:56 +08:00
Trim21 and Enrico Minack
cb50dec5ba
Merge PaginatedList.pyi back to source ( #2555 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-06-20 08:13:20 +02:00
b6258f4be9
merge GithubObject.pyi/Requester.pyi stubs back to source ( #2463 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
Co-authored-by: Jonathan Leitschuh <jonathan.leitschuh@gmail.com >
2023-06-16 11:57:35 -04:00
chantra
6d4b6d1419
Add support for get_app() with App authentication ( #2549 )
...
Moves `Github.get_app()` called without `slug` parameter into `GithubIntegration`, because it needs an `AppAuth`,
and we collect all such endpoints there. Calling `Github.get_app()` without `slug` parameter is now deprecated.
Replaces `datetime.utcnow()` with `datetime.now(timezone.utc)`, as it is deprecated in Python 3.12.
2023-06-16 08:09:16 +02:00
Heitor Polidoro
6a21761e0f
Allow multiline comments in PullRequest ( #2540 )
...
- change deprecated parameter position to line
- add a parameter to allow multiline comment: start_line
- add a parameter to allow comment as suggestion: as_suggestion
- add more missing parameters: side, start_side, in_reply_to, subject_type
2023-06-15 21:16:58 +02:00
Trim21
52fc107735
[CI] Moving linting into separate workflow ( #2522 )
2023-06-14 21:26:49 +02:00
Enrico Minack
f291a368bb
Implement AppUserAuth for Github App user tokens ( #2546 )
...
Allows to refresh Github App user token. Integrates `ApplicationOAuth` into `github.Auth`.
2023-06-14 19:40:29 +02:00
alson
0384e2fd13
Add support for environments ( #2223 )
2023-06-13 21:07:11 +02:00
Enrico Minack
7be3f76372
Make Requester.__createException robust against missing message and body ( #2159 )
2023-06-13 11:14:14 +02:00
Enrico Minack
6407512079
Fix auth issues with Installation.get_repos ( #2547 )
2023-06-13 08:35:47 +02:00
Jonathan Leitschuh
daf62bd461
Add support for new RepositoryAdvisories API 🎉 ( #2483 )
2023-06-09 13:42:18 -04:00
Enrico Minack
84912a675c
Make MainClass.get_app return completed GithubApp when slug is given ( #2543 )
...
Fixes slug attribute to fetch app when not set. Loads app with slug lazily, fetch complete app without slug.
2023-06-08 10:06:28 +02:00
Enrico Minack
fc2d0e150a
Add authentication classes, move auth logic there ( #2528 )
...
This adds argument `auth` and deprecates `login_or_token`, `password`, `jwt`, and `app_auth` arguments of `github.Github`.
This adds argument `auth` and deprecates `integration_id`, `private_key` of `github.GithubIntegration`.
This deprecates the `create_jwt` method of `github.GithubIntegration`, replaced by `github.Auth.AppAuth.create_jwt`.
2023-06-08 09:17:25 +02:00
Enrico Minack
a8e7c4237d
Add sort order and direction for getting comments ( #2544 )
...
Note: This is a breaking change. The order of parameters of `PullRequest.get_review_comments` has changed to match other `get_comments` methods and Github API parameter order. Users should change `PullRequest.get_review_comments(since)` to `PullRequest.get_review_comments(since=since)`.
Calling without parameter is not breaking: `PullRequest.get_review_comments()`
2023-06-07 14:50:07 +02:00
Enrico Minack and Steve Kowalik
217d424187
Merging 1.58.x patch release notes into master ( #2525 )
...
Co-authored-by: Steve Kowalik <steven@wedontsleep.org >
2023-06-01 15:57:21 +02:00
Trim21 and Enrico Minack
9f52e9486a
Add name filter to Repository.get_artifacts() ( #2459 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-06-01 14:32:55 +02:00
Sasha Chung
10816389d2
Add name, display_title and path attributes to WorkflowRun ( #2397 )
2023-06-01 10:41:33 +02:00
Kevin Grandjean
f82ad61c37
Fix broken urls in docstrings ( #2393 )
2023-06-01 10:36:31 +02:00
Jonathan Leitschuh
b94a83cbf3
Add new create_fork arguments ( #2493 )
...
Adds support for new `create_fork` arguments:
- `name` - To set the name of the fork on creation
- `default_branch_only` - To only include the default branch
Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com >
2023-05-23 17:40:02 +02:00
Nevins and Nevins Bartolomeo
e8075c41dd
add ref to Deployment ( #2489 )
...
Co-authored-by: Nevins Bartolomeo <nevins@sev.co >
2023-05-23 10:23:58 -04:00
Trim21
8e8cfb3038
merge AppAuthentication.pyi to source ( #2519 )
2023-05-23 16:12:35 +02:00
Trim21
a4854519c6
Add query check_suite_id integer to Workflow.get_runs ( #2466 )
2023-05-23 16:07:21 +02:00
Trim21
03a2f69667
Merge GithubException.pyi stubs back to source ( #2464 )
2023-05-23 16:00:43 +02:00
Wojciech Barczyński
49b3ae16bf
Add generate_release_notes parameter to create_git_release and create_git_tag_and_release ( #2417 )
2023-05-23 15:53:33 +02:00
Nicolas Schweitzer
c2f12bdc09
Add example for Pull Request comments to documentation ( #2390 )
2023-05-23 15:37:23 +02:00
BradChengIRESS and Glenn McDonald
8c4b9465e6
Add allow_auto_merge support to Repository ( #2477 )
...
Co-authored-by: Glenn McDonald <testworksau@users.noreply.github.com >
2023-05-18 15:33:18 -04:00
Trim21
4fa0a5f3f0
fix: Repository.get_artifact() missing argument artifact_id ( #2458 )
2023-05-13 22:33:13 +02:00
Enrico Minack
17cd0b7964
Raise error on unsupported redirects, log supported redirects ( #2524 )
2023-05-13 20:36:08 +02:00
Andrew Collington
600217f04f
Fixes issue #2521 ( #2529 )
2023-05-12 09:47:15 -07:00
Jonathan Leitschuh
297317ba33
Add missing fields from GithubCredentials.py to CONTRIBUTING.md ( #2482 )
2023-05-09 15:33:15 -07:00
Juan Manuel "Kang" Pérez and Juan Manuel Kang Perez
e296dbdbad
Add missing attributes to Branch ( #2512 )
...
Co-authored-by: Juan Manuel "Kang" Perez <devel@kangmak.es >
2023-05-09 12:06:35 +02:00
Felipe Peter
bab4180fd5
Add allow_update_branch option to Organization ( #2465 )
2023-05-08 20:16:36 +02:00
Nicolas Schweitzer and Nicolas Schweitzer
5aa544a1cf
Add support for Issue.state_reason #2370 ( #2392 )
...
Co-authored-by: Nicolas Schweitzer <nicolas.schweitzer@amadeus.com >
2023-05-08 08:01:05 +02:00
Mikhail f. Shiryaev
4198dbfbac
Add parameters to Repository.get_workflow_runs ( #2408 )
2023-05-06 17:00:09 +08:00
Enrico Minack
a343100084
Fix GithubIntegration using exiring jwt ( #2460 )
2023-05-05 14:54:52 +02:00
dependabot[bot] and dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
300c5015d4
Bump actions/checkout from 2 to 3.1.0 ( #2327 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 13:26:26 +08:00
Enrico Minack
822fc05cd5
Add expiration argument back to GithubIntegration.create_jwt ( #2439 )
...
* Add expiration argument back to create_jwt
2023-03-17 21:40:48 +11:00
Enrico Minack
554b2b28db
Add crypto extras to pyjwt, which pulls in cryptogaphy package ( #2443 )
...
* Add crypto extras to pyjwt, which pulls in cryptogaphy package
* Remove cryptography dependency from more places
* Remove integrations extra from docs
2023-03-15 09:45:48 +11:00
Enrico Minack
45f3d723ce
Remove RLock from Requester ( #2446 )
2023-03-15 09:40:43 +11:00
Enrico Minack
e414c3227b
Move CI to Python 3.11 release and 3.12 dev ( #2434 )
2023-02-23 21:52:10 +08:00
Enrico Minack
5033f5f1a4
Merge pull request #2425 from bluek1te/master
...
Pass requester base URL to integration (#2420 )
2023-02-23 12:07:07 +01:00
Phillip Tran
bdceae2f52
pass requester base URL to integration ( #2420 )
2023-02-20 13:29:04 -06:00
Liuyang Wan
def5223c21
RTD: install current project
2023-02-20 09:22:59 +08:00
Liuyang Wan
9c96faa702
Add current dir sys.path as well
2023-02-19 19:50:45 +08:00
Liuyang Wan
6540b76db0
Fix package name again
2023-02-19 19:45:58 +08:00
Liuyang Wan
1640767741
Fix sphinx package name
2023-02-19 19:33:25 +08:00
Liuyang Wan
3ea91a3a36
Use use_scm_version to get current version from git tag ( #2429 )
2023-02-19 19:29:29 +08:00