Skip to content

Commit 2c60124

Browse files
build(deps): bump githubkit from 0.13.4 to 0.13.5 (#727)
Bumps [githubkit](https://github.com/yanyongyu/githubkit) from 0.13.4 to 0.13.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/yanyongyu/githubkit/releases">githubkit's releases</a>.</em></p> <blockquote> <h2>Release 0.13.5</h2> <h2>What's Changed</h2> <ul> <li>CI: support uv_build 0.9.0 by <a href="https://github.com/Prince213"><code>@​Prince213</code></a> in <a href="https://redirect.github.com/yanyongyu/githubkit/pull/242">yanyongyu/githubkit#242</a></li> <li>Feature: add httpx transport config to client by <a href="https://github.com/yanyongyu"><code>@​yanyongyu</code></a> in <a href="https://redirect.github.com/yanyongyu/githubkit/pull/247">yanyongyu/githubkit#247</a></li> <li>re-generate openapi models and apis</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/yanyongyu/githubkit/compare/v0.13.4...v0.13.5">https://github.com/yanyongyu/githubkit/compare/v0.13.4...v0.13.5</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/yanyongyu/githubkit/commit/fc10405ccd9e2d73585db80d0c0332f05d5c707b"><code>fc10405</code></a> :bookmark: bump version 0.13.5</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/989a60e2a85db817146a88c9e4293422029449ff"><code>989a60e</code></a> :sparkles: Feature: add httpx transport config to client (<a href="https://redirect.github.com/yanyongyu/githubkit/issues/247">#247</a>)</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/18ed668dd322d6dd308a99c5277484868db1bccf"><code>18ed668</code></a> :memo: improve github enterprise docs (<a href="https://redirect.github.com/yanyongyu/githubkit/issues/244">#244</a>)</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/dbeefb58a36042ab86b92a92719327fcc888d485"><code>dbeefb5</code></a> :alien: re-generate openapi models and apis</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/6eb36ea51f0c5e9c039c834da718f5b38ef4cbc0"><code>6eb36ea</code></a> :memo: fix code highlight error</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/6dc51203aacb1e330ff64205d18fd196d20e8e35"><code>6dc5120</code></a> :memo: fix docs nav link</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/42b00c581d7e502e69c24e17148baca7df2ab86d"><code>42b00c5</code></a> :memo: update quick start examples</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/23074883b8fabb5949d61679f27a83a37dfac635"><code>2307488</code></a> :memo: add async graphql paginate docs</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/b74a54adf0074bf3650d353288535329107ecb7a"><code>b74a54a</code></a> :arrow_up: Bump astral-sh/setup-uv (<a href="https://redirect.github.com/yanyongyu/githubkit/issues/243">#243</a>)</li> <li><a href="https://github.com/yanyongyu/githubkit/commit/2817664d904541242d4cedf7aae85cd4c4b606e2"><code>2817664</code></a> :construction_worker: CI: support uv_build 0.9.0 (<a href="https://redirect.github.com/yanyongyu/githubkit/issues/242">#242</a>)</li> <li>See full diff in <a href="https://github.com/yanyongyu/githubkit/compare/v0.13.4...v0.13.5">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=githubkit&package-manager=uv&previous-version=0.13.4&new-version=0.13.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Zenith <me@arielle.codes>
1 parent 10dee19 commit 2c60124

4 files changed

Lines changed: 8 additions & 15 deletions

File tree

monty/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def create_http_session(self, proxy: str | None = None) -> None:
104104

105105
transport = AiohttpTransport(client=http_session)
106106
self.httpx = httpx.AsyncClient(transport=transport)
107-
self.github = GitHubClient(constants.Auth.github, transport=transport)
107+
self.github = GitHubClient(constants.Auth.github, async_transport=transport)
108108

109109
async def get_self_invite_perms(self) -> disnake.Permissions:
110110
"""Sets the internal invite_permissions and fetches them."""

monty/github_client.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
from typing import Any
2-
31
from githubkit import GitHub
42

53

4+
# This previously existed for overwriting async_transport, but now that exists in githubkit,
5+
# this exists because adding a new custom feature is easy if desired.
66
class GitHubClient(GitHub):
77
def __init__(self, *args, **kwargs):
8-
self._transport = kwargs.pop("transport", None)
98
kwargs["http_cache"] = False
109
super().__init__(*args, **kwargs)
11-
12-
def _get_client_defaults(self) -> dict[str, Any]:
13-
defaults = super()._get_client_defaults()
14-
if self._transport is not None:
15-
defaults["transport"] = self._transport
16-
return defaults

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = [
2323
"cachingutils @ git+https://github.com/onerandomusername/cachingutils.git@vcokltfre/feat/v2",
2424
"colorama~=0.4.5; sys_platform == \"win32\"",
2525
"disnake @ git+https://github.com/DisnakeDev/disnake.git@master",
26-
"githubkit>=0.13.4",
26+
"githubkit>=0.13.5",
2727
"httpx>=0.28.1",
2828
"httpx-aiohttp>=0.1.9",
2929
"lxml<6.0.0,>=5.4.0",

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)