canonical / discourse-gatekeeper

Experimental GitHub Action to upload charm documentation to charmhub
Apache License 2.0
7 stars 7 forks source link

Update dependency PyGithub to >=1.59,<1.60 #196

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
PyGithub >=1.57,<1.58 -> >=1.59,<1.60 age adoption passing confidence

Release Notes

pygithub/pygithub (PyGithub) ### [`v1.59.1`](https://togithub.com/PyGithub/PyGithub/releases/tag/v1.59.1) [Compare Source](https://togithub.com/pygithub/pygithub/compare/v1.59.0...v1.59.1) ##### Bug Fixes - Safely coerce responseHeaders to int ([#​2697](https://togithub.com/pygithub/pygithub/issues/2697)) ([`adbfce9`](https://togithub.com/pygithub/pygithub/commit/adbfce92)) ### [`v1.59.0`](https://togithub.com/PyGithub/PyGithub/releases/tag/v1.59.0) [Compare Source](https://togithub.com/pygithub/pygithub/compare/v1.58.2...v1.59.0) #### Important This release introduces new way of authentication. All authentication-related arguments `github.Github(login_or_token=…, password=…, jwt=…, app_auth=…)` and `github.GithubIntegration(integration_id=…, private_key=…, jwt_expiry=…, jwt_issued_at=…, jwt_algorithm=…)` are replaced by a single `auth=…` argument. Module `github.Auth` provides classes for all supported ways of authentication: `Login`, `Token`, `AppAuth`, `AppAuthToken`, `AppInstallationAuth`, `AppUserAuth`. Old arguments are deprecated but continue to work. They are scheduled for removal for version 2.0 release. This project has decided to move all typing information from `.pyi` files into the respective `.py` source files. This will happen gradually over time. #### Breaking Changes - The `position` argument in `github.PullRequest.create_review_comment(position=…)` has been renamed to `line`. This breaks user code that calls `create_review_comment` with keyword argument `position`. Call with `line=…` instead. Calling this method with positional arguments is not breaking. - The `jwt_expiry`, `jwt_issued_at` and `jwt_algorithm` arguments in `github.GithubIntegration()` have changed their position. User code calling `github.GithubIntegration(…)` with these arguments as positional arguments breaks. Please use keyword arguments: `github.GithubIntegration(…, jwt_expiry=…, jwt_issued_at=…, jwt_algorithm=…)`. - The `since` argument in `github.PullRequest.get_review_comments(…)` has changed position.`User code calling`github.PullRequest.get_review_comments(…)`with this argument as positional argument breaks. Please use keyword argument:`github.PullRequest.get_review_comments(since=…)\`. #### Deprecations - The use of `github.Github(login_or_token=…)` is deprecated, use `github.Github(auth=github.Auth.Login(…))` or `github.Github(auth=github.Auth.Token(…))` instead. - The use of `github.Github(password=…)` is deprecated, use `github.Github(auth=github.Auth.Login(…))` instead. - The use of `github.Github(jwt=…)` is deprecated, use `github.Github(auth=github.AppAuth(…))` or `github.Github(auth=github.AppAuthToken(…))` instead. - The use of `github.Github(app_auth=…)` is deprecated, use `github.Github(auth=github.Auth.AppInstallationAuth(…))` instead. - The use of `github.GithubIntegration(integration_id=…, private_key=…, jwt_expiry=…, jwt_issued_at=…, jwt_algorithm=…)` is deprecated, use `github.GithubIntegration(auth=github.Auth.AppAuth(…))` instead. - The use of `github.GithubIntegration.create_jwt` is deprecated, use `github.Github(auth=github.Auth.AppAuth)`, `github.Auth.AppAuth.token` or `github.Auth.AppAuth.create_jwt(expiration)` instead. - The use of `AppAuthentication` is deprecated, use `github.Auth.AppInstallationAuth` instead. - The use of `github.Github.get_app()` without providing argument `slug` is deprecated, use `github.GithubIntegration(auth=github.Auth.AppAuth(…)).get_app()`. #### Bug Fixes - Test and fix UTC issue with AppInstallationAuth ([#​2561](https://togithub.com/pygithub/pygithub/issues/2561)) ([`ff3b80f`](https://togithub.com/pygithub/pygithub/commit/ff3b80f8)) - Make Requester.\__createException robust against missing message and body ([#​2159](https://togithub.com/pygithub/pygithub/issues/2159)) ([`7be3f76`](https://togithub.com/pygithub/pygithub/commit/7be3f763)) - Fix auth issues with `Installation.get_repos` ([#​2547](https://togithub.com/pygithub/pygithub/issues/2547)) ([`6407512`](https://togithub.com/pygithub/pygithub/commit/64075120)) - Fix broken urls in docstrings ([#​2393](https://togithub.com/pygithub/pygithub/issues/2393)) ([`f82ad61`](https://togithub.com/pygithub/pygithub/commit/f82ad61c)) - Raise error on unsupported redirects, log supported redirects ([#​2524](https://togithub.com/pygithub/pygithub/issues/2524)) ([`17cd0b7`](https://togithub.com/pygithub/pygithub/commit/17cd0b79)) - Fix GithubIntegration that uses expiring jwt ([#​2460](https://togithub.com/pygithub/pygithub/issues/2460)) ([`5011548`](https://togithub.com/pygithub/pygithub/commit/5011548c)) - Add expiration argument back to GithubIntegration.create_jwt ([#​2439](https://togithub.com/pygithub/pygithub/issues/2439)) ([`822fc05`](https://togithub.com/pygithub/pygithub/commit/822fc05c)) - Add crypto extras to pyjwt, which pulls in cryptogaphy package ([#​2443](https://togithub.com/pygithub/pygithub/issues/2443)) ([`554b2b2`](https://togithub.com/pygithub/pygithub/commit/554b2b28)) - Remove RLock from Requester ([#​2446](https://togithub.com/pygithub/pygithub/issues/2446)) ([`45f3d72`](https://togithub.com/pygithub/pygithub/commit/45f3d723)) - Move CI to Python 3.11 release and 3.12 dev ([#​2434](https://togithub.com/pygithub/pygithub/issues/2434)) ([`e414c32`](https://togithub.com/pygithub/pygithub/commit/e414c322)) - Pass Requester base URL to integration ([#​2420](https://togithub.com/pygithub/pygithub/issues/2420)) ([`bdceae2`](https://togithub.com/pygithub/pygithub/commit/bdceae2f)) #### Improvements - Add Webhook Deliveries ([#​2508](https://togithub.com/pygithub/pygithub/issues/2508)) ([`517ad33`](https://togithub.com/pygithub/pygithub/commit/517ad336)) - Add support for workflow jobs and steps ([#​1951](https://togithub.com/pygithub/pygithub/issues/1951)) ([`804c310`](https://togithub.com/pygithub/pygithub/commit/804c3107)) - Add support for get_app() with App authentication ([#​2549](https://togithub.com/pygithub/pygithub/issues/2549)) ([`6d4b6d1`](https://togithub.com/pygithub/pygithub/commit/6d4b6d14)) - Allow multiline comments in PullRequest ([#​2540](https://togithub.com/pygithub/pygithub/issues/2540)) ([`6a21761`](https://togithub.com/pygithub/pygithub/commit/6a21761e)) - Implement `AppUserAuth` for Github App user tokens ([#​2546](https://togithub.com/pygithub/pygithub/issues/2546)) ([`f291a36`](https://togithub.com/pygithub/pygithub/commit/f291a368)) - Add support for environments ([#​2223](https://togithub.com/pygithub/pygithub/issues/2223)) ([`0384e2f`](https://togithub.com/pygithub/pygithub/commit/0384e2fd)) - Add support for new RepositoryAdvisories API :tada: ([#​2483](https://togithub.com/pygithub/pygithub/issues/2483)) ([`daf62bd`](https://togithub.com/pygithub/pygithub/commit/daf62bd4)) - Make `MainClass.get_app` return completed `GithubApp` when slug is given ([#​2543](https://togithub.com/pygithub/pygithub/issues/2543)) ([`84912a6`](https://togithub.com/pygithub/pygithub/commit/84912a67)) - Add authentication classes, move auth logic there ([#​2528](https://togithub.com/pygithub/pygithub/issues/2528)) ([`fc2d0e1`](https://togithub.com/pygithub/pygithub/commit/fc2d0e15)) - Add sort order and direction for getting comments ([#​2544](https://togithub.com/pygithub/pygithub/issues/2544)) ([`a8e7c42`](https://togithub.com/pygithub/pygithub/commit/a8e7c423)) - Add `name` filter to `Repository.get_artifacts()` ([#​2459](https://togithub.com/pygithub/pygithub/issues/2459)) ([`9f52e94`](https://togithub.com/pygithub/pygithub/commit/9f52e948)) - Add `name`, `display_title` and `path` attributes to `WorkflowRun` ([#​2397](https://togithub.com/pygithub/pygithub/issues/2397)) ([`1081638`](https://togithub.com/pygithub/pygithub/commit/10816389)) - Add new `create_fork` arguments ([#​2493](https://togithub.com/pygithub/pygithub/issues/2493)) ([`b94a83c`](https://togithub.com/pygithub/pygithub/commit/b94a83cb)) - add `ref` to Deployment ([#​2489](https://togithub.com/pygithub/pygithub/issues/2489)) ([`e8075c4`](https://togithub.com/pygithub/pygithub/commit/e8075c41)) - Add query `check_suite_id` integer to `Workflow.get_runs` ([#​2466](https://togithub.com/pygithub/pygithub/issues/2466)) ([`a485451`](https://togithub.com/pygithub/pygithub/commit/a4854519)) - Add `generate_release_notes` parameter to `create_git_release` and `create_git_tag_and_release` ([#​2417](https://togithub.com/pygithub/pygithub/issues/2417)) ([`49b3ae1`](https://togithub.com/pygithub/pygithub/commit/49b3ae16)) - Add example for Pull Request comments to documentation ([#​2390](https://togithub.com/pygithub/pygithub/issues/2390)) ([`c2f12bd`](https://togithub.com/pygithub/pygithub/commit/c2f12bdc)) - Add allow_auto_merge support to Repository ([#​2477](https://togithub.com/pygithub/pygithub/issues/2477)) ([`8c4b946`](https://togithub.com/pygithub/pygithub/commit/8c4b9465)) - Add `artifact_id` argument to `Repository.get_artifact()` ([#​2458](https://togithub.com/pygithub/pygithub/issues/2458)) ([`4fa0a5f`](https://togithub.com/pygithub/pygithub/commit/4fa0a5f3)) - Add missing attributes to Branch ([#​2512](https://togithub.com/pygithub/pygithub/issues/2512)) ([`e296dbd`](https://togithub.com/pygithub/pygithub/commit/e296dbdb)) - Add allow_update_branch option to Organization ([#​2465](https://togithub.com/pygithub/pygithub/issues/2465)) ([`bab4180`](https://togithub.com/pygithub/pygithub/commit/bab4180f)) - Add support for Issue.state_reason [#​2370](https://togithub.com/pygithub/pygithub/issues/2370) ([#​2392](https://togithub.com/pygithub/pygithub/issues/2392)) ([`5aa544a`](https://togithub.com/pygithub/pygithub/commit/5aa544a1)) - Add parameters to Repository.get_workflow_runs ([#​2408](https://togithub.com/pygithub/pygithub/issues/2408)) ([`4198dbf`](https://togithub.com/pygithub/pygithub/commit/4198dbfb)) #### Maintenance - Add type stub for MainClass.get_project_column ([#​2502](https://togithub.com/pygithub/pygithub/issues/2502)) ([`d514222`](https://togithub.com/pygithub/pygithub/commit/d514222c)) - Sync GithubIntegration **init** arguments with github.Github ([#​2556](https://togithub.com/pygithub/pygithub/issues/2556)) ([`ea45237`](https://togithub.com/pygithub/pygithub/commit/ea45237d)) - Update MAINTAINERS ([#​2545](https://togithub.com/pygithub/pygithub/issues/2545)) ([`f4e9dcb`](https://togithub.com/pygithub/pygithub/commit/f4e9dcb3)) - Link to stable docs, update introduction in package used by pypi, move auth arg front ([#​2557](https://togithub.com/pygithub/pygithub/issues/2557)) ([`006766f`](https://togithub.com/pygithub/pygithub/commit/006766f9)) - Merge PaginatedList.pyi back to source ([#​2555](https://togithub.com/pygithub/pygithub/issues/2555)) ([`cb50dec`](https://togithub.com/pygithub/pygithub/commit/cb50dec5)) - Merge GithubObject.pyi/Requester.pyi stubs back to source ([#​2463](https://togithub.com/pygithub/pygithub/issues/2463)) ([`b6258f4`](https://togithub.com/pygithub/pygithub/commit/b6258f4b)) - \[CI] Moving linting into separate workflow ([#​2522](https://togithub.com/pygithub/pygithub/issues/2522)) ([`52fc107`](https://togithub.com/pygithub/pygithub/commit/52fc1077)) - Merging 1.58.x patch release notes into master ([#​2525](https://togithub.com/pygithub/pygithub/issues/2525)) ([`217d424`](https://togithub.com/pygithub/pygithub/commit/217d4241)) - Merge AppAuthentication.pyi to source ([#​2519](https://togithub.com/pygithub/pygithub/issues/2519)) ([`8e8cfb3`](https://togithub.com/pygithub/pygithub/commit/8e8cfb30)) - Merge GithubException.pyi stubs back to source ([#​2464](https://togithub.com/pygithub/pygithub/issues/2464)) ([`03a2f69`](https://togithub.com/pygithub/pygithub/commit/03a2f696)) - Add missing fields from `GithubCredentials.py` to CONTRIBUTING.md ([#​2482](https://togithub.com/pygithub/pygithub/issues/2482)) ([`297317b`](https://togithub.com/pygithub/pygithub/commit/297317ba)) - Update docstring and typing for allow_forking and allow_update_branch (Repository) ([#​2529](https://togithub.com/pygithub/pygithub/issues/2529)) ([`600217f`](https://togithub.com/pygithub/pygithub/commit/600217f0)) - Bump actions/checkout from 2 to 3.1.0 ([#​2327](https://togithub.com/pygithub/pygithub/issues/2327)) ([`300c501`](https://togithub.com/pygithub/pygithub/commit/300c5015)) - RTD: install current project ([`def5223`](https://togithub.com/pygithub/pygithub/commit/def5223c)) - Add current dir sys.path as well ([`9c96faa`](https://togithub.com/pygithub/pygithub/commit/9c96faa7)) - Use use_scm_version to get current version from git tag ([#​2429](https://togithub.com/pygithub/pygithub/issues/2429)) ([`3ea91a3`](https://togithub.com/pygithub/pygithub/commit/3ea91a3a)) ### [`v1.58.2`](https://togithub.com/PyGithub/PyGithub/releases/tag/v1.58.2) [Compare Source](https://togithub.com/pygithub/pygithub/compare/v1.58.1...v1.58.2) #### Fixes - Fix GithubIntegration that uses expiring jwt [@​EnricoMi](https://togithub.com/EnricoMi) ([#​2460](https://togithub.com/pygithub/pygithub/issues/2460)) ### [`v1.58.1`](https://togithub.com/PyGithub/PyGithub/releases/tag/v1.58.1) [Compare Source](https://togithub.com/pygithub/pygithub/compare/v1.58.0...v1.58.1) #### Changes - Bump actions/checkout from 2 to 3.1.0 [@​dependabot](https://togithub.com/dependabot) ([#​2327](https://togithub.com/pygithub/pygithub/issues/2327)) - Add crypto extras to pyjwt, which pulls in cryptogaphy package [@​EnricoMi](https://togithub.com/EnricoMi) ([#​2443](https://togithub.com/pygithub/pygithub/issues/2443)) - Move CI to Python 3.11 release and 3.12 dev [@​EnricoMi](https://togithub.com/EnricoMi) ([#​2434](https://togithub.com/pygithub/pygithub/issues/2434)) #### Bug Fixes - Add expiration argument back to GithubIntegration.create_jwt [@​EnricoMi](https://togithub.com/EnricoMi) ([#​2439](https://togithub.com/pygithub/pygithub/issues/2439)) - Remove RLock from Requester [@​EnricoMi](https://togithub.com/EnricoMi) ([#​2446](https://togithub.com/pygithub/pygithub/issues/2446)) - Pass requester base URL to integration ([#​2420](https://togithub.com/pygithub/pygithub/issues/2420)) [@​bluek1te](https://togithub.com/bluek1te) ([#​2425](https://togithub.com/pygithub/pygithub/issues/2425)) - Use use_scm_version to get current version from git tag [@​sfdye](https://togithub.com/sfdye) ([#​2429](https://togithub.com/pygithub/pygithub/issues/2429)) ### [`v1.58.0`](https://togithub.com/PyGithub/PyGithub/releases/tag/v1.58.0) [Compare Source](https://togithub.com/pygithub/pygithub/compare/v1.57...v1.58.0) **Bug Fixes & Improvements** - Add unarchiving support [@​Tsuesun](https://togithub.com/Tsuesun) ([#​2391](https://togithub.com/pygithub/pygithub/issues/2391)) - Support full GitHub app authentication [@​dblanchette](https://togithub.com/dblanchette) ([#​1986](https://togithub.com/pygithub/pygithub/issues/1986)) - Continue the PR [#​1899](https://togithub.com/pygithub/pygithub/issues/1899) [@​Felixoid](https://togithub.com/Felixoid) ([#​2386](https://togithub.com/pygithub/pygithub/issues/2386)) - feat: add allow_forking to Repository [@​IbrahimAH](https://togithub.com/IbrahimAH) ([#​2380](https://togithub.com/pygithub/pygithub/issues/2380)) - Add code scanning alerts [@​eric-nieuwland](https://togithub.com/eric-nieuwland) ([#​2227](https://togithub.com/pygithub/pygithub/issues/2227))

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

github-actions[bot] commented 1 year ago

Test coverage for d19c19a691ad3090fad45fd088dafa33914656af

Name                      Stmts   Miss Branch BrPart  Cover   Missing
---------------------------------------------------------------------
src/__init__.py              61      0     22      0   100%
src/action.py               154      0     46      0   100%
src/check.py                 53      0     21      0   100%
src/clients.py               12      0      0      0   100%
src/commit.py                42      0     12      0   100%
src/constants.py              9      0      0      0   100%
src/content.py               50      0     10      0   100%
src/discourse.py            156      0     34      0   100%
src/docs_directory.py        33      0      8      0   100%
src/download.py              23      0      2      0   100%
src/exceptions.py            14      0      0      0   100%
src/index.py                128      0     48      0   100%
src/metadata.py              28      0     12      0   100%
src/migration.py             87      0     27      0   100%
src/navigation_table.py      65      0     20      0   100%
src/reconcile.py             87      0     38      0   100%
src/repository.py           268      0     82      0   100%
src/sort.py                  39      0     22      0   100%
src/types_.py               135      0     22      0   100%
---------------------------------------------------------------------
TOTAL                      1444      0    426      0   100%

Static code analysis report

Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:02
Run started:2023-08-18 11:02:44.538603

Test results:
    No issues identified.

Code scanned:
    Total lines of code: 15131
    Total lines skipped (#nosec): 14
    Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0

Run metrics:
    Total issues (by severity):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
    Total issues (by confidence):
        Undefined: 0
        Low: 0
        Medium: 0
        High: 0
Files skipped (0):