Commit Graph
2043 Commits
Author SHA1 Message Date
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
NevinsandNevins 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
BradChengIRESSandGlenn 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érezandJuan 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 SchweitzerandNicolas 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]anddependabot[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
Liuyang Wan 5d1d1612ad Bump version to 1.58.0 2023-02-19 18:12:47 +08:00
Liuyang Wan b7daaf1980 Add release drafter and pubilsh on tag creation (#2428) 2023-02-19 17:51:21 +08:00
Sol Redfern c7e3ae9421 Add unarchiving support (#2391) 2023-02-13 20:43:07 +08:00
5e27c10a31 Support full GitHub app authentication (#1986)
* Support full GitHub app authentication
 Refactor GithubIntegration class and add test case for app authentication
Add permissions and repository properties in InstallationAuthorization
Set JWT_EXPIRY=60 by default in GithubIntegration constructor
* Modify existing testcases for GithubIntegration as per the framework and add missing tests
* Provide installation ID for creating the access token instead of getting the first installation
* Add optional permissions support for installation access token
* Add lock around app authentication
* Keep compatibility for importing GithubIntegration from MainClass
* Group app authentication parameters in a class

Co-authored-by: Malik Ammar Akbar <malikammar.akbar@pfizer.com>
Co-authored-by: Enrico Minack <github@enrico.minack.dev>
2023-02-06 20:50:15 +11:00
Mikhail f. Shiryaevandgreen-green-avk 7cf3dfc18e Continue the PR #1899 (#2386)
* A property to access the `assets` field of release (#1898)

... in order to avoid extra requests.

<https://github.com/PyGithub/PyGithub/issues/1898>

* Remove comment to comply the review

* Add tests for GitRelease.assets

---------

Co-authored-by: green-green-avk <45503261+green-green-avk@users.noreply.github.com>
2023-01-31 07:44:16 +08:00
Ibrahim Hussainiandhussaiia 6c53e5442a feat: add allow_forking to Repository (#2380)
* chore(dependency): flake8 has moved to github

* feat: add allow_forking to Repository

* chore: linting

Co-authored-by: hussaiia <ibrahim.hussaini@cba.com.au>
2022-12-15 11:05:02 +08:00
Eric Nieuwland 7902351d4f Add code scanning alerts (#2227) 2022-11-09 14:59:34 +08:00
Liuyang Wan 948edc5bb3 Publish version 1.57 2022-11-05 09:07:58 +08:00
tison 6725eceb62 Speed up get requested reviewers and teams for pr (#2349) 2022-11-04 08:22:48 +08:00
Gabriele Oliaro 3a6235b56e [WorkflowRun] - Add missing attributes (run_started_at & run_attempt), remove deprecated unicode type (#2273) 2022-10-29 11:26:24 +08:00
Marco Köpcke 0fadd6be8e Add support for repository autolink references (#2016) 2022-10-29 09:03:57 +08:00
Enrico Minack 784a3efd68 Add retry and pool_size to typing (#2151) 2022-10-25 11:34:46 +08:00
Sarah MountandLiuyang Wan db9337a4ee Fix/types for repo topic team (#2341)
Co-authored-by: Liuyang Wan <tsfdye@gmail.com>
2022-10-25 11:20:10 +08:00
Hugo van Kemenade a71cd37a86 Require pyjwt>=2.4.0 to avoid CVE-2022-29217 (#2333) 2022-10-25 11:08:36 +08:00
Aleksei FedotovandAleksei Fedotov 437ff8452a Add class Artifact (#2313) (#2319)
Co-authored-by: Aleksei Fedotov <aleksei@fedotov.email>
2022-10-25 11:02:33 +08:00
Liuyang Wan 17b44d8857 Fix typo in blame ignore revs (#2342) 2022-10-25 10:57:03 +08:00
Hugo van Kemenade 1e2f10dcb2 Add support for Python 3.11, drop EOL 3.6 (#2332) 2022-10-25 10:51:28 +08:00
Liuyang Wan 7d3c3f083d Relax stale to 180 days (#2331) 2022-10-13 14:35:43 +08:00
Liuyang Wan c677ced98d Publish version 1.56 2022-10-13 09:23:01 +08:00
b50283a7cf Create repo from template (#2090)
Co-authored-by: bagashvilit <bagashvilit@allegheny.edu>
Co-authored-by: WonjoonC <chos@allegheny.edu>
Co-authored-by: Isac Souza <isouza@daitangroup.com>
Co-authored-by: Isac Souza <isouza@daitan.com>
Co-authored-by: Liuyang Wan <tsfdye@gmail.com>
2022-10-13 09:13:31 +08:00
Liuyang Wan 7e6333da1a Fix CI (#2330) 2022-10-13 08:56:18 +08:00