Skip to content

Update dependency PyGithub to v2.6.1 #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 15, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
PyGithub ==2.5.0 -> ==2.6.1 age adoption passing confidence

Release Notes

pygithub/pygithub (PyGithub)

v2.6.1

Compare Source

Bug Fixes
Maintenance

Full Changelog: PyGithub/PyGithub@v2.6.0...v2.6.1

v2.6.0

Compare Source

Breaking Changes
  • Rework Views and Clones by @​EnricoMi in https://github.com/PyGithub/PyGithub/pull/3168:
    View and clones traffic information returned by Repository.get_views_traffic and Repository.get_clones_traffic
    now return proper PyGithub objects, instead of a dict, with all information that used to be provided by the dict:

Code like

repo.get_views_traffic().["views"].timestamp
repo.get_clones_traffic().["clones"].timestamp

should be replaced with

repo.get_views_traffic().views.timestamp
repo.get_clones_traffic().clones.timestamp
New Features
Improvements
Bug Fixes
Others
Maintenance

New Contributors

Full Changelog: PyGithub/PyGithub@v2.5.0...v2.6.0


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 is behind base branch, or you tick the rebase/retry checkbox.

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


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner February 15, 2025 20:50
@renovate renovate bot requested review from seb4stien and weiiwang01 February 15, 2025 20:50
@renovate renovate bot changed the title Update dependency PyGithub to v2.6.0 Update dependency PyGithub to v2.6.1 Feb 21, 2025
Copy link

github-actions bot commented Mar 6, 2025

Test results for commit 17337dc

Lint checks failed for 17337dc

```

--- /home/ubuntu/actions-runner/_work/discourse-gatekeeper/discourse-gatekeeper/main.py 2025-03-06 08:03:11.753265+00:00
+++ /home/ubuntu/actions-runner/_work/discourse-gatekeeper/discourse-gatekeeper/main.py 2025-03-06 08:04:29.411782+00:00
@@ -90,11 +90,11 @@
charm_dir=charm_dir,
)

def _serialize_for_github(

  • urls_with_actions_dict: str | dict[str, ActionResult] | PullRequestAction | typing.Any
  • urls_with_actions_dict: str | dict[str, ActionResult] | PullRequestAction | typing.Any,
    ) -> str:
    """Serialize dictionary output into a string to be outputted to GitHub.

    Args:
    urls_with_actions_dict: dictionary output representing results of processes
    --- /home/ubuntu/actions-runner/work/discourse-gatekeeper/discourse-gatekeeper/tests/unit/test___init_.py 2025-03-06 08:03:11.758265+00:00
    +++ /home/ubuntu/actions-runner/work/discourse-gatekeeper/discourse-gatekeeper/tests/unit/test___init_.py 2025-03-06 08:04:30.401917+00:00
    @@ -433,11 +433,11 @@
    index
    act: when _run_reconcile is called
    assert: then a documentation page is created and an index page is created with a navigation
    page with the external item.
    """

  • mocked_clients.discourse.create_topic.side_effect = [(index_url := "url 1")]
  • mocked_clients.discourse.create_topic.side_effect = [index_url := "url 1"]

    with mocked_clients.repository.with_branch(DEFAULT_BRANCH) as repo:
    (docs_dir := repo.base_path / "docs").mkdir()
    (docs_dir / "index.md").write_text(
    f"""{(index_content := 'index content')}

Copy link

github-actions bot commented Mar 6, 2025

Test results for commit 17337dc

Test coverage for 17337dc

Name                                 Stmts   Miss Branch BrPart  Cover   Missing
--------------------------------------------------------------------------------
src/gatekeeper/__init__.py              96      0     34      0   100%
src/gatekeeper/action.py               158      0     44      0   100%
src/gatekeeper/check.py                 62      0     16      0   100%
src/gatekeeper/clients.py               11      0      0      0   100%
src/gatekeeper/commit.py                41      0     12      0   100%
src/gatekeeper/constants.py              8      0      0      0   100%
src/gatekeeper/content.py               49      0      8      0   100%
src/gatekeeper/discourse.py            157      0     32      0   100%
src/gatekeeper/docs_directory.py        32      0      2      0   100%
src/gatekeeper/download.py              21      0      2      0   100%
src/gatekeeper/exceptions.py            14      0      0      0   100%
src/gatekeeper/index.py                141      0     52      0   100%
src/gatekeeper/metadata.py              58      0     28      0   100%
src/gatekeeper/migration.py            101      0     28      0   100%
src/gatekeeper/navigation_table.py      64      0     18      0   100%
src/gatekeeper/reconcile.py            122      0     46      0   100%
src/gatekeeper/repository.py           292      0     54      0   100%
src/gatekeeper/sort.py                  42      0     10      0   100%
src/gatekeeper/types_.py               201      0      8      0   100%
--------------------------------------------------------------------------------
TOTAL                                 1670      0    394      0   100%

Static code analysis report

Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:02
Run started:2025-03-06 08:06:04.608367

Test results:
  No issues identified.

Code scanned:
  Total lines of code: 17877
  Total lines skipped (#nosec): 3
  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):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants