Trim21
22c208ac1c
Merge RequiredStatusChecks type stub back to source ( #2647 )
2023-08-17 21:35:41 +02:00
Trim21
bc9e829434
Merge Referrer type stub back to source ( #2645 )
2023-08-17 21:26:58 +02:00
YugoHino and Enrico Minack
a7bfdf2d65
Adding feature for enterprise consumed license ( #2626 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-17 21:21:20 +02:00
Armen Martirosyan
eadc241e07
Search Workflows by Name ( #2711 )
2023-08-17 21:15:21 +02:00
Mauricio Alejandro Martínez Pacheco and Enrico Minack
bcca758d13
Add Secret and Variable classes ( #2623 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-10 10:06:44 +02:00
Trim21 and Enrico Minack
7cfa476187
Merge StatsCodeFrequency type stub back to source ( #2638 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-09 14:32:18 +02:00
Trim21 and Enrico Minack
971c4a2e21
Merge Plan type stub back to source ( #2637 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-09 13:42:12 +02:00
Trim21 and Enrico Minack
1af926443d
Merge ContentFile type stub back to source ( #2635 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-09 13:36:01 +02:00
Trim21 and Enrico Minack
d02ef2231f
CommitComment ( #2634 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-09 13:20:01 +02:00
Trim21 and Enrico Minack
aedfa0b912
Add Autolink API link ( #2632 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-09 13:15:56 +02:00
adosibalo and Enrico Minack
1922ea6813
Safely coerce responseHeaders to int ( #2697 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-08-03 11:20:08 +02:00
vanya20074 and Enrico Minack
4933459e6b
Fix assertion for subject_type in creating pull request review comment ( #2642 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-21 19:02:14 +02:00
Jirka Borovec and Enrico Minack
42c3b47c85
Replace flake8 with ruff ( #2617 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-19 09:39:21 +02:00
Trim21 and Enrico Minack
9989b112f7
Merge type stub bask to source: Comparison CommitStatus CommitCombinedStatus ( #2633 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-18 16:47:52 +02:00
Trim21 and Enrico Minack
16180f985d
Merge Commit.pyi back to source ( #2616 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-18 16:44:35 +02:00
Trim21 and Enrico Minack
80ae3f398b
Merge Code* type stub back to source ( #2615 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-18 16:37:39 +02:00
Trim21 and Enrico Minack
0779bf33c6
Merge CheckSuite type stub back to source ( #2606 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-18 14:44:54 +02:00
Trim21 and Enrico Minack
cb92c7be53
Merge CheckRun type stub back to source ( #2605 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-18 14:40:18 +02:00
7a80fad9bb
Add required_linear_history attribute to BranchProtection ( #2643 )
...
Co-authored-by: Jacob Beard <jake@minnow.io >
Co-authored-by: Paul Melnikow <github@paulmelnikow.com >
2023-07-18 14:26:35 +02:00
Trim21 and Enrico Minack
f259db9fda
Merge AuthenticatedUser type stubs back to source ( #2577 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-18 12:21:32 +02:00
Trim21
15112267e6
Merge Path type stub back to source ( #2639 )
2023-07-18 12:05:06 +02:00
Trim21
294c0cc9c5
Enable mypy disallow_untyped_defs ( #2609 )
2023-07-14 21:47:24 +02:00
Trim21
8816889a7d
Enable mypy check_untyped_defs ( #2607 )
2023-07-14 14:49:28 +02:00
Jirka Borovec
13e178a3ab
Set line length to 120 characters ( #2599 )
2023-07-13 17:37:20 +02:00
Enrico Minack
de80ff4b91
Add retry issue to GithubException, don't log it ( #2611 )
2023-07-11 16:10:42 +02:00
Trim21
8bdfc3a0d7
Merge some simple class' type stubs back to source ( #2570 )
2023-07-11 15:57:16 +02:00
Trim21 and Enrico Minack
61f9ae6c4b
Merge some simple classes' type stubs back to source ( #2576 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-08 12:14:34 +02:00
Trim21
f087cad3cb
Add message property to GithubException ( #2591 )
2023-07-08 11:51:19 +02:00
Mauricio Alejandro Martínez Pacheco and Enrico Minack
91b3f40f79
Add support for repo and org level actions variables ( #2580 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-07 15:29:30 +02:00
Thomas Burghout
766df993da
Add missing arguments to Workflow.get_runs() ( #2346 )
...
Adds missing arguments created, exclude_pull_requests, head_sha to the query options of Workflow.get_runs().
2023-07-07 15:14:40 +02:00
Trim21 and Enrico Minack
e306a3209b
Merge Issue.pyi back to source ( #2568 )
...
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-07 11:43:29 +02:00
950a69493f
Use timezone-aware reset datetime in GithubRetry.py ( #2610 )
...
Co-authored-by: Patryk Szulczyk <patryk.szulczyk@skyscanner.net >
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-07 09:05:48 +02:00
Trim21
5fcb0c7d3b
Use typing_extensions for TypedDict ( #2592 )
2023-07-06 09:21:15 +02:00
Trim21
50e26d566f
Merge WorkflowRun type stub back to source ( #2554 )
2023-07-05 09:50:31 +02:00
Trim21
f6e6af6f5a
Merge ApplicationOAuth.pyi back to source ( #2569 )
2023-07-05 09:02:59 +02:00
Felipe Peter
72840de4b3
Add more methods and attributes to Repository.pyi ( #2581 )
2023-07-04 12:48:17 +02:00
c4c2e5273c
Add github.Rate.used field ( #2531 )
...
Co-authored-by: Nikolay Yurin <yurinnick@meta.com >
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-04 09:50:00 +02:00
Trim21 and Enrico Minack
c5682489d9
Merge Branch type stubs back to source ( #2571 )
...
Introduces new helper methods `is_defined`, `is_undefined`, `is_optional`, `is_optional_list` that is going to simplify input assertions in all our methods.
Co-authored-by: Enrico Minack <github@enrico.minack.dev >
2023-07-04 09:42:53 +02:00
Enrico Minack
bc68626941
Publish version 2.0.0 ( #2583 )
2023-07-04 07:59:53 +02:00
Thomas Devoogdt
c5542a6ae8
Fix Branch.bypass_pull_request_allowances failing with "nil is not an object" ( #2535 )
...
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com >
2023-06-30 11:58:40 +02:00
Enrico Minack and John T. Wodder II
0177f7c513
Make datetime objects timezone-aware ( #2565 )
...
Comparing timestamps returned by the API with naive datetime objects (without timezone information) will raise an error. Add `tzinfo=datetime.timezone.utc` to your datetime instance.
Co-authored-by: John T. Wodder II <git@varonathe.org >
2023-06-28 21:47:48 +02:00
Enrico Minack
99155806ed
Throttle requests to mitigate RateLimitExceededExceptions ( #2145 )
...
This introduces a throttling of requests to the Github REST API (1s for writes, 0.25s for reads, configurable)
to mitigate secondary rate limit errors and comply with Github's best practices:
https://docs.github.com/en/rest/guides/best-practices-for-integrators?apiVersion=2022-11-28#dealing-with-secondary-rate-limits
2023-06-28 21:38:29 +02:00
Enrico Minack
0bb72ca004
Retry retryable 403 (rate limit) ( #2387 )
2023-06-28 12:49:20 -04:00
Trim21
094538e10c
Force Unix EOL ( #2573 )
2023-06-27 14:34:12 +02:00
Trim21
3bb4e901fb
Merge Artifact type stub back to source ( #2553 )
2023-06-26 08:28:49 +02:00
Enrico Minack
14ae2cad4c
Release 1.59.0 ( #2563 )
2023-06-22 19:41:10 +02:00
Enrico Minack
ff3b80f8f1
Test and fix UTC issue with AppInstallationAuth ( #2561 )
2023-06-22 16:15:34 +02:00
Giulia Vergottini
d514222cb1
Add type stub for MainClass.get_project_column ( #2502 )
...
Co-Authored: Attila Dulovics <dulovicsattila@gmail.com >
2023-06-21 21:11:04 +02:00
Enrico Minack
ea45237d3b
Sync GithubIntegration __init__ arguments with github.Github ( #2556 )
...
Github and GithubIntegration now both support the same (full) set of Requester arguments.
Creating a Github instance for a Github App Installation coming from GithubIntegration uses the same
Requester arguments (except for auth).
2023-06-21 09:04:19 +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