Commit Graph
2020 Commits
Author SHA1 Message Date
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
xmo-odoo 001970d4a8 Improve signature of Repository.create_repo (#2118)
The docstring stated that `"*"` and `"none"` were valid values for the
organization, but neither was actually supported (unless your
organization was called `"none"`).

Remove the misleading information from the docstring, and add support
for passing in an actual `Organization` object, for better typing and
reliability properties.

Fixes #2116
2021-12-20 18:27:19 +11:00
Steve Kowalik 5c290c9a32 Fix replay data for Organization.create_secret() (#2096)
A recently merged PR added a const, which will be used when fetching
repositories. Update replay data for a test that was not included in
that change.
2021-11-01 21:19:38 +11:00
Tanner 8d1397af2f Add support for 'visibility' attribute preview for Repositories (#1872)
Expose the new 'visibility' attribute for repository objects.

Fixes #1446
2021-11-01 21:02:16 +11:00
Steve Kowalik 6452ddfeb4 Add Repository.rename_branch method (#2089)
The GitHub API exposes an endpoint to rename a branch, so we should
support calling it. Sadly, there is not enough information to add
that method to the Branch class, so expose it in the Repository object.

Fixes #1901
2021-10-24 15:21:31 +11:00
c8a945bb42 Add function to delete pending reviews on a pull request (#1897)
Add a delete method to PullRequestReview to allow dismissing them.

Fixes #1856 

Co-authored-by: bagashvilit <bagashvilit@allegheny.edu>
Co-authored-by: WonjoonC <chos@allegheny.edu>
2021-10-24 15:15:31 +11:00
Steve Kowalik f1faf941ec Cover all code paths in search_commits (#2087)
The search_commits method was only very lightly tested, meaning over
half of it was not covered. Write another test case, covering all code
paths.
2021-10-22 08:39:31 +11:00
Steve Kowalik 93b92cd2fc Correctly deal when PaginatedList's data is a dict (#2084)
When calculating totalCount for a PaginatedList, if a Link header is not
in the returned data, we use len() to calculate the number of items.
PullRequest.get_review_requests() actually returns a dictionary, which
neatly defeats this naive method. Peer inside the dictionary in this
case, and add a test case.

Fixes #2053
2021-10-20 18:49:12 +11:00
Krishna Sheth 3f767649c8 Add comment on issue example (#2081)
Add an example showing how to comment on an existing issue.
2021-10-20 18:48:51 +11:00
Nicolai Weitkemper 70cc819e46 Use rate-limit in documentation URLs (#2036)
link to GitHub docs fixed: Replace rate_limit with rate-limit
2021-10-20 15:31:51 +11:00
Steve Kowalik 0422110987 Move lint and docs to Python 3.8 (#2077)
With Python 3.6 rapidly approaching end of life, move the docs and lint
tox targets to Python 3.8, and also switch readthedocs to match.
2021-10-19 15:34:23 +11:00
秋葉 4f00cbf2c4 Add two_factor_authentication in AuthenticatedUser. (#1972)
Fixes #1971
2021-10-19 15:07:53 +11:00
Katelyn Gigante d417e4c408 Add ProjectCard.edit() to the type stub (#2080)
The typing information for ProjectCard did not have edit().
Add it.
2021-10-18 19:24:27 +11:00
Steve Kowalik b1c8eec58f Add method to delete Workflow runs (#2078)
One piece of missing functionality is the ability to delete Workflow
Runs, which the GitHub API supports. Add a delete() method to
WorkflowRun.

Fixes #2019
2021-10-15 15:40:09 +11:00
James Simpson 53fb49882f Implement organization.cancel_invitation() (#2072)
Implement a new function cancel_invitation for github.Organization objects, allowing for
cancellation of organization invitations.
2021-10-13 16:22:54 +11:00
秋葉 6570892a79 Feat: Add html_url property in Team Class. (#1983)
Fixes: #1942
2021-10-13 15:57:07 +11:00
Steve Kowalik aa694f8edc Add support for Python 3.10 (#2073)
Now that Python 3.10 has been released, we should test it in CI.
2021-10-13 15:34:01 +11:00
Marina Peresypkina bc5e5950aa Add github actions secrets to org (#2006)
Add functionality to create and delete Secrets for Organizations.
2021-10-13 15:33:18 +11:00
Steve Kowalik fcc1236870 Correct replay for Organization.create_project() test (#2075)
The just landed test case for Organization.create_project() used the
wrong Authorization headers, correct it.
2021-10-12 17:55:28 +11:00
karthik-kadajji d71c25a6d4 Add type hint for Organization.create_project() (#2032)
Organization.create_project() did not have a type hint, add one, and a test case.
2021-10-12 16:10:48 +11:00
mickeydarrenlau 99e00a2894 Fix install command example (#2043)
It should be pip install PyGithub[integrations] not pip install PyGithub['integrations']
2021-10-12 16:06:54 +11:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 42f2c95cf5 Update sphinx-rtd-theme requirement from <0.6 to <1.1 (#2059)
Updates the requirements on [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) to permit the latest version.
- [Release notes](https://github.com/readthedocs/sphinx_rtd_theme/releases)
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst)
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/0.1.8...1.0.0)

---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-12 16:06:09 +11:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> aa90effb81 Bump codecov/codecov-action from 1 to 2.1.0 (#2058)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.1.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-12 16:05:42 +11:00
Steve Kowalik b10dbe3989 Fix AuthenticatedUser ReplayData with parameters (#2074)
A recently merged change modified AuthenticatedUser.get_notifications()
in how it passes boolean parameters, but did not modify the replay data.
Do so now.
2021-10-11 16:39:19 +11:00