diff --git a/github/Requester.py b/github/Requester.py index eb093de23c..ccff91ea6e 100644 --- a/github/Requester.py +++ b/github/Requester.py @@ -52,6 +52,7 @@ # Copyright 2023 Phillip Tran # # Copyright 2023 Trim21 # # Copyright 2023 adosibalo <94008816+adosibalo@users.noreply.github.com> # +# Copyright 2024 Enrico Minack # # # # This file is part of PyGithub. # # http://pygithub.readthedocs.io/ # @@ -395,6 +396,8 @@ def __init__( self.__base_url = base_url o = urllib.parse.urlparse(base_url) + self.__graphql_prefix = self.get_graphql_prefix(o.path) + self.__graphql_url = urllib.parse.urlunparse(o._replace(path=self.__graphql_prefix)) self.__hostname = o.hostname # type: ignore self.__port = o.port self.__prefix = o.path @@ -450,6 +453,22 @@ def __setstate__(self, state: Dict[str, Any]) -> None: self.__connection = None self.__custom_connections = deque() + @staticmethod + # replace with str.removesuffix once support for Python 3.7 is dropped + def remove_suffix(string: str, suffix: str) -> str: + if string.endswith(suffix): + return string[: -len(suffix)] + return string + + @staticmethod + def get_graphql_prefix(path: Optional[str]) -> str: + if path is None or path in ["", "/"]: + path = "" + if path.endswith(("/v3", "/v3/")): + path = Requester.remove_suffix(path, "/") + path = Requester.remove_suffix(path, "/v3") + return path + "/graphql" + def close(self) -> None: """ Close the connection to the server. @@ -485,6 +504,10 @@ def kwargs(self) -> Dict[str, Any]: def base_url(self) -> str: return self.__base_url + @property + def graphql_url(self) -> str: + return self.__graphql_url + @property def hostname(self) -> str: return self.__hostname @@ -540,7 +563,7 @@ def graphql_query(self, query: str, variables: Dict[str, Any]) -> Tuple[Dict[str """ input_ = {"query": query, "variables": {"input": variables}} - response_headers, data = self.requestJsonAndCheck("POST", "https://api.github.com/graphql", input=input_) + response_headers, data = self.requestJsonAndCheck("POST", self.graphql_url, input=input_) if "errors" in data: raise self.createException(400, response_headers, data) return response_headers, data @@ -894,8 +917,8 @@ def __makeAbsoluteUrl(self, url: str) -> str: "status.github.com", "github.com", ], o.hostname - assert o.path.startswith((self.__prefix, "/api/")) - assert o.port == self.__port + assert o.path.startswith((self.__prefix, self.__graphql_prefix, "/api/")), o.path + assert o.port == self.__port, o.port url = o.path if o.query != "": url += f"?{o.query}" diff --git a/tests/GraphQl.py b/tests/GraphQl.py new file mode 100644 index 0000000000..de27ab9cb3 --- /dev/null +++ b/tests/GraphQl.py @@ -0,0 +1,76 @@ +############################ Copyrights and license ############################ +# # +# Copyright 2024 Enrico Minack # +# # +# This file is part of PyGithub. # +# http://pygithub.readthedocs.io/ # +# # +# PyGithub is free software: you can redistribute it and/or modify it under # +# the terms of the GNU Lesser General Public License as published by the Free # +# Software Foundation, either version 3 of the License, or (at your option) # +# any later version. # +# # +# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # +# details. # +# # +# You should have received a copy of the GNU Lesser General Public License # +# along with PyGithub. If not, see . # +# # +################################################################################ + +from typing import Any, Dict + +import github +from github import Github + +from . import Framework + + +class GraphQl(Framework.TestCase): + def setUp(self): + super().setUp() + + def expected(self, base_url: str = "https://github.com") -> Dict[Any, Any]: + return { + "data": { + "disablePullRequestAutoMerge": { + "actor": { + "avatarUrl": "https://avatars.githubusercontent.com/u/14806300?u=786f9f8ef8782d45381b01580f7f7783cf9c7e37&v=4", + "login": "heitorpolidoro", + "resourcePath": "/heitorpolidoro", + "url": f"{base_url}/heitorpolidoro", + }, + "clientMutationId": None, + } + } + } + + def testRequesterGraphQlPrefix(self): + get_graphql_prefix = github.Requester.Requester.get_graphql_prefix + assert "/graphql" == get_graphql_prefix(None) + assert "/graphql" == get_graphql_prefix("") + assert "/graphql" == get_graphql_prefix("/") + assert "/api/graphql" == get_graphql_prefix("/api/v3") + assert "/path/to/github/api/graphql" == get_graphql_prefix("/path/to/github/api/v3") + assert "/path/to/github/graphql" == get_graphql_prefix("/path/to/github") + + def testDefaultUrl(self): + pull = self.g.get_repo("PyGithub/PyGithub").get_pull(31) + response = pull.disable_automerge() + assert response == self.expected() + + def testOtherUrl(self): + base_url = "https://my.enterprise.com/api/v3" + gh = Github(base_url=base_url) + pull = gh.get_repo("PyGithub/PyGithub").get_pull(31) + response = pull.disable_automerge() + assert response == self.expected(base_url) + + def testOtherPort(self): + base_url = "https://my.enterprise.com:8080/api/v3" + gh = Github(base_url=base_url) + pull = gh.get_repo("PyGithub/PyGithub").get_pull(31) + response = pull.disable_automerge() + assert response == self.expected(base_url) diff --git a/tests/ReplayData/GraphQl.testDefaultUrl.txt b/tests/ReplayData/GraphQl.testDefaultUrl.txt new file mode 100644 index 0000000000..c520343081 --- /dev/null +++ b/tests/ReplayData/GraphQl.testDefaultUrl.txt @@ -0,0 +1,32 @@ +https +GET +api.github.com +None +/repos/PyGithub/PyGithub +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Sat, 20 Jan 2024 09:58:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8d3a8781cb083ecf6b9194272a6522af705bd0d8c5bbaa959618b6d51725387e"'), ('Last-Modified', 'Sat, 20 Jan 2024 06:37:31 GMT'), ('github-authentication-token-expiration', '2024-02-19 10:58:06 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-accepted-github-permissions', 'metadata=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4998'), ('X-RateLimit-Reset', '1705746614'), ('X-RateLimit-Used', '2'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'B70C:505BC:14BDE07A:14F6AE81:65AB9959')] +{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://api.github.com/repos/PyGithub/PyGithub","forks_url":"https://api.github.com/repos/PyGithub/PyGithub/forks","keys_url":"https://api.github.com/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyGithub/PyGithub/teams","hooks_url":"https://api.github.com/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/PyGithub/PyGithub/events","assignees_url":"https://api.github.com/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/PyGithub/PyGithub/tags","blobs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/PyGithub/PyGithub/languages","stargazers_url":"https://api.github.com/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/PyGithub/PyGithub/subscription","commits_url":"https://api.github.com/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyGithub/PyGithub/merges","archive_url":"https://api.github.com/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyGithub/PyGithub/downloads","issues_url":"https://api.github.com/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2024-01-20T06:37:31Z","pushed_at":"2024-01-19T20:38:15Z","git_url":"git://github.com/PyGithub/PyGithub.git","ssh_url":"git@github.com:PyGithub/PyGithub.git","clone_url":"https://github.com/PyGithub/PyGithub.git","svn_url":"https://github.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":15500,"stargazers_count":6484,"watchers_count":6484,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1715,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":288,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["github","github-api","pygithub","python"],"visibility":"public","forks":1715,"open_issues":288,"watchers":6484,"default_branch":"main","permissions":{"admin":false,"maintain":false,"push":true,"triage":true,"pull":true},"custom_properties":{},"organization":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","site_admin":false},"network_count":1715,"subscribers_count":111} + +https +GET +api.github.com +None +/repos/PyGithub/PyGithub/pulls/31 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Sat, 20 Jan 2024 09:58:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"add6f9aeb7d78b7a86d664f8107ca57bac6312a49fa4a9279afaebe7180405e5"'), ('Last-Modified', 'Thu, 21 Sep 2023 07:32:37 GMT'), ('github-authentication-token-expiration', '2024-02-19 10:58:06 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-accepted-github-permissions', 'pull_requests=read; contents=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4997'), ('X-RateLimit-Reset', '1705746614'), ('X-RateLimit-Used', '3'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'B714:354E89:774D594:78D06E8:65AB995A')] +{"url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/31","id":1436215,"node_id":"MDExOlB1bGxSZXF1ZXN0MTQzNjIxNQ==","html_url":"https://github.com/PyGithub/PyGithub/pull/31","diff_url":"https://github.com/PyGithub/PyGithub/pull/31.diff","patch_url":"https://github.com/PyGithub/PyGithub/pull/31.patch","issue_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/31","number":31,"state":"closed","locked":false,"title":"Title edited by PyGithub","user":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","site_admin":false},"body":"Body edited by PyGithub\n","created_at":"2012-05-27T09:25:36Z","updated_at":"2018-06-25T12:54:43Z","closed_at":"2012-05-27T10:29:07Z","merged_at":"2012-05-27T10:29:07Z","merge_commit_sha":"28ae6dd10ebccd5eaf8db8dacb5b699ee7f4a663","assignee":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","site_admin":false},"assignees":[{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/31/commits","review_comments_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/31/comments","review_comment_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/31/comments","statuses_url":"https://api.github.com/repos/PyGithub/PyGithub/statuses/8a4f306d4b223682dd19410d4a9150636ebe4206","head":{"label":null,"ref":"master","sha":"8a4f306d4b223682dd19410d4a9150636ebe4206","user":null,"repo":null},"base":{"label":"PyGithub:topic/RewriteWithGeneratedCode","ref":"topic/RewriteWithGeneratedCode","sha":"ed866fc43833802ab553e5ff8581c81bb00dd433","user":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","site_admin":false},"repo":{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://api.github.com/users/PyGithub","html_url":"https://github.com/PyGithub","followers_url":"https://api.github.com/users/PyGithub/followers","following_url":"https://api.github.com/users/PyGithub/following{/other_user}","gists_url":"https://api.github.com/users/PyGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyGithub/subscriptions","organizations_url":"https://api.github.com/users/PyGithub/orgs","repos_url":"https://api.github.com/users/PyGithub/repos","events_url":"https://api.github.com/users/PyGithub/events{/privacy}","received_events_url":"https://api.github.com/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://api.github.com/repos/PyGithub/PyGithub","forks_url":"https://api.github.com/repos/PyGithub/PyGithub/forks","keys_url":"https://api.github.com/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyGithub/PyGithub/teams","hooks_url":"https://api.github.com/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/PyGithub/PyGithub/events","assignees_url":"https://api.github.com/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/PyGithub/PyGithub/tags","blobs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/PyGithub/PyGithub/languages","stargazers_url":"https://api.github.com/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/PyGithub/PyGithub/subscription","commits_url":"https://api.github.com/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyGithub/PyGithub/merges","archive_url":"https://api.github.com/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyGithub/PyGithub/downloads","issues_url":"https://api.github.com/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2024-01-20T06:37:31Z","pushed_at":"2024-01-19T20:38:15Z","git_url":"git://github.com/PyGithub/PyGithub.git","ssh_url":"git@github.com:PyGithub/PyGithub.git","clone_url":"https://github.com/PyGithub/PyGithub.git","svn_url":"https://github.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":15500,"stargazers_count":6484,"watchers_count":6484,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1715,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":288,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["github","github-api","pygithub","python"],"visibility":"public","forks":1715,"open_issues":288,"watchers":6484,"default_branch":"main"}},"_links":{"self":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/31"},"html":{"href":"https://github.com/PyGithub/PyGithub/pull/31"},"issue":{"href":"https://api.github.com/repos/PyGithub/PyGithub/issues/31"},"comments":{"href":"https://api.github.com/repos/PyGithub/PyGithub/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyGithub/PyGithub/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/PyGithub/PyGithub/statuses/8a4f306d4b223682dd19410d4a9150636ebe4206"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":true,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"maintainer_can_modify":false,"commits":3,"additions":511,"deletions":384,"changed_files":45} + +https +POST +api.github.com +None +/graphql +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'} +{"query": "mutation DisablePullRequestAutoMerge($input: DisablePullRequestAutoMergeInput!) { disablePullRequestAutoMerge(input: $input) { actor { avatarUrl login resourcePath url } clientMutationId } }", "variables": {"input": {"pullRequestId": "MDExOlB1bGxSZXF1ZXN0MTQzNjIxNQ=="}}} +200 +[('Server', 'GitHub.com'), ('Date', 'Wed, 07 Jun 2023 08:27:45 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"1573389419d98a2b3d9a6b1fc058a68f1fc3d31108ccfdab8ca4121153626211"'), ('Last-Modified', 'Wed, 07 Jun 2023 04:02:03 GMT'), ('X-OAuth-Scopes', 'public_repo'), ('X-Accepted-OAuth-Scopes', 'repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4959'), ('X-RateLimit-Reset', '1686126614'), ('X-RateLimit-Used', '41'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '8A96:10854:895AE2:8AB25B:64803F81')] +{"data": {"disablePullRequestAutoMerge": {"actor": {"avatarUrl": "https://avatars.githubusercontent.com/u/14806300?u=786f9f8ef8782d45381b01580f7f7783cf9c7e37&v=4", "login": "heitorpolidoro", "resourcePath": "/heitorpolidoro", "url": "https://github.com/heitorpolidoro"}, "clientMutationId": null}}} diff --git a/tests/ReplayData/GraphQl.testOtherPort.txt b/tests/ReplayData/GraphQl.testOtherPort.txt new file mode 100644 index 0000000000..f5a5ada09e --- /dev/null +++ b/tests/ReplayData/GraphQl.testOtherPort.txt @@ -0,0 +1,32 @@ +https +GET +my.enterprise.com +8080 +/api/v3/repos/PyGithub/PyGithub +{'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'enterprise.com'), ('Date', 'Sat, 20 Jan 2024 09:58:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8d3a8781cb083ecf6b9194272a6522af705bd0d8c5bbaa959618b6d51725387e"'), ('Last-Modified', 'Sat, 20 Jan 2024 06:37:31 GMT'), ('github-authentication-token-expiration', '2024-02-19 10:58:06 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-accepted-github-permissions', 'metadata=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4998'), ('X-RateLimit-Reset', '1705746614'), ('X-RateLimit-Used', '2'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'B70C:505BC:14BDE07A:14F6AE81:65AB9959')] +{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/PyGithub","html_url":"https://my.enterprise.com:8080/PyGithub","followers_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://my.enterprise.com:8080/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub","forks_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/forks","keys_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/teams","hooks_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/events","assignees_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/tags","blobs_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/languages","stargazers_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/subscription","commits_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/merges","archive_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/downloads","issues_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2024-01-20T06:37:31Z","pushed_at":"2024-01-19T20:38:15Z","git_url":"git://my.enterprise.com:8080/PyGithub/PyGithub.git","ssh_url":"git@my.enterprise.com:PyGithub/PyGithub.git","clone_url":"https://my.enterprise.com:8080/PyGithub/PyGithub.git","svn_url":"https://my.enterprise.com:8080/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":15500,"stargazers_count":6484,"watchers_count":6484,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1715,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":288,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://my.enterprise.com:8080/api/v3/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["github","github-api","pygithub","python"],"visibility":"public","forks":1715,"open_issues":288,"watchers":6484,"default_branch":"main","permissions":{"admin":false,"maintain":false,"push":true,"triage":true,"pull":true},"custom_properties":{},"organization":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/PyGithub","html_url":"https://my.enterprise.com:8080/PyGithub","followers_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"network_count":1715,"subscribers_count":111} + +https +GET +my.enterprise.com +8080 +/api/v3/repos/PyGithub/PyGithub/pulls/31 +{'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'enterprise.com'), ('Date', 'Sat, 20 Jan 2024 09:58:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"add6f9aeb7d78b7a86d664f8107ca57bac6312a49fa4a9279afaebe7180405e5"'), ('Last-Modified', 'Thu, 21 Sep 2023 07:32:37 GMT'), ('github-authentication-token-expiration', '2024-02-19 10:58:06 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-accepted-github-permissions', 'pull_requests=read; contents=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4997'), ('X-RateLimit-Reset', '1705746614'), ('X-RateLimit-Used', '3'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'B714:354E89:774D594:78D06E8:65AB995A')] +{"url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/31","id":1436215,"node_id":"MDExOlB1bGxSZXF1ZXN0MTQzNjIxNQ==","html_url":"https://my.enterprise.com:8080/PyGithub/PyGithub/pull/31","diff_url":"https://my.enterprise.com:8080/PyGithub/PyGithub/pull/31.diff","patch_url":"https://my.enterprise.com:8080/PyGithub/PyGithub/pull/31.patch","issue_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/31","number":31,"state":"closed","locked":false,"title":"Title edited by PyGithub","user":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/jacquev6","html_url":"https://my.enterprise.com:8080/jacquev6","followers_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/received_events","type":"User","site_admin":false},"body":"Body edited by PyGithub\n","created_at":"2012-05-27T09:25:36Z","updated_at":"2018-06-25T12:54:43Z","closed_at":"2012-05-27T10:29:07Z","merged_at":"2012-05-27T10:29:07Z","merge_commit_sha":"28ae6dd10ebccd5eaf8db8dacb5b699ee7f4a663","assignee":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/jacquev6","html_url":"https://my.enterprise.com:8080/jacquev6","followers_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/received_events","type":"User","site_admin":false},"assignees":[{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/jacquev6","html_url":"https://my.enterprise.com:8080/jacquev6","followers_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/31/commits","review_comments_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/31/comments","review_comment_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/comments{/number}","comments_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/31/comments","statuses_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/statuses/8a4f306d4b223682dd19410d4a9150636ebe4206","head":{"label":null,"ref":"master","sha":"8a4f306d4b223682dd19410d4a9150636ebe4206","user":null,"repo":null},"base":{"label":"PyGithub:topic/RewriteWithGeneratedCode","ref":"topic/RewriteWithGeneratedCode","sha":"ed866fc43833802ab553e5ff8581c81bb00dd433","user":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/PyGithub","html_url":"https://my.enterprise.com:8080/PyGithub","followers_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"repo":{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/PyGithub","html_url":"https://my.enterprise.com:8080/PyGithub","followers_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://my.enterprise.com:8080/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub","forks_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/forks","keys_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/teams","hooks_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/events","assignees_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/tags","blobs_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/languages","stargazers_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/subscription","commits_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/merges","archive_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/downloads","issues_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2024-01-20T06:37:31Z","pushed_at":"2024-01-19T20:38:15Z","git_url":"git://my.enterprise.com:8080/PyGithub/PyGithub.git","ssh_url":"git@my.enterprise.com:PyGithub/PyGithub.git","clone_url":"https://my.enterprise.com:8080/PyGithub/PyGithub.git","svn_url":"https://my.enterprise.com:8080/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":15500,"stargazers_count":6484,"watchers_count":6484,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1715,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":288,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://my.enterprise.com:8080/api/v3/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["github","github-api","pygithub","python"],"visibility":"public","forks":1715,"open_issues":288,"watchers":6484,"default_branch":"main"}},"_links":{"self":{"href":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/31"},"html":{"href":"https://my.enterprise.com:8080/PyGithub/PyGithub/pull/31"},"issue":{"href":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/31"},"comments":{"href":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/issues/31/comments"},"review_comments":{"href":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/31/comments"},"review_comment":{"href":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/pulls/31/commits"},"statuses":{"href":"https://my.enterprise.com:8080/api/v3/repos/PyGithub/PyGithub/statuses/8a4f306d4b223682dd19410d4a9150636ebe4206"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":true,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com:8080/api/v3/users/jacquev6","html_url":"https://my.enterprise.com:8080/jacquev6","followers_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com:8080/api/v3/users/jacquev6/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"maintainer_can_modify":false,"commits":3,"additions":511,"deletions":384,"changed_files":45} + +https +POST +my.enterprise.com +8080 +/api/graphql +{'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'} +{"query": "mutation DisablePullRequestAutoMerge($input: DisablePullRequestAutoMergeInput!) { disablePullRequestAutoMerge(input: $input) { actor { avatarUrl login resourcePath url } clientMutationId } }", "variables": {"input": {"pullRequestId": "MDExOlB1bGxSZXF1ZXN0MTQzNjIxNQ=="}}} +200 +[('Server', 'enterprise.com'), ('Date', 'Wed, 07 Jun 2023 08:27:45 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"1573389419d98a2b3d9a6b1fc058a68f1fc3d31108ccfdab8ca4121153626211"'), ('Last-Modified', 'Wed, 07 Jun 2023 04:02:03 GMT'), ('X-OAuth-Scopes', 'public_repo'), ('X-Accepted-OAuth-Scopes', 'repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4959'), ('X-RateLimit-Reset', '1686126614'), ('X-RateLimit-Used', '41'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '8A96:10854:895AE2:8AB25B:64803F81')] +{"data": {"disablePullRequestAutoMerge": {"actor": {"avatarUrl": "https://avatars.githubusercontent.com/u/14806300?u=786f9f8ef8782d45381b01580f7f7783cf9c7e37&v=4", "login": "heitorpolidoro", "resourcePath": "/heitorpolidoro", "url": "https://my.enterprise.com:8080/api/v3/heitorpolidoro"}, "clientMutationId": null}}} diff --git a/tests/ReplayData/GraphQl.testOtherUrl.txt b/tests/ReplayData/GraphQl.testOtherUrl.txt new file mode 100644 index 0000000000..d507c03ecd --- /dev/null +++ b/tests/ReplayData/GraphQl.testOtherUrl.txt @@ -0,0 +1,32 @@ +https +GET +my.enterprise.com +None +/api/v3/repos/PyGithub/PyGithub +{'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'enterprise.com'), ('Date', 'Sat, 20 Jan 2024 09:58:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8d3a8781cb083ecf6b9194272a6522af705bd0d8c5bbaa959618b6d51725387e"'), ('Last-Modified', 'Sat, 20 Jan 2024 06:37:31 GMT'), ('github-authentication-token-expiration', '2024-02-19 10:58:06 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-accepted-github-permissions', 'metadata=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4998'), ('X-RateLimit-Reset', '1705746614'), ('X-RateLimit-Used', '2'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'B70C:505BC:14BDE07A:14F6AE81:65AB9959')] +{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/PyGithub","html_url":"https://my.enterprise.com/PyGithub","followers_url":"https://my.enterprise.com/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://my.enterprise.com/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub","forks_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/forks","keys_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/teams","hooks_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/events","assignees_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/tags","blobs_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/languages","stargazers_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/subscription","commits_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/merges","archive_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/downloads","issues_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2024-01-20T06:37:31Z","pushed_at":"2024-01-19T20:38:15Z","git_url":"git://my.enterprise.com/PyGithub/PyGithub.git","ssh_url":"git@my.enterprise.com:PyGithub/PyGithub.git","clone_url":"https://my.enterprise.com/PyGithub/PyGithub.git","svn_url":"https://my.enterprise.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":15500,"stargazers_count":6484,"watchers_count":6484,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1715,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":288,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://my.enterprise.com/api/v3/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["github","github-api","pygithub","python"],"visibility":"public","forks":1715,"open_issues":288,"watchers":6484,"default_branch":"main","permissions":{"admin":false,"maintain":false,"push":true,"triage":true,"pull":true},"custom_properties":{},"organization":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/PyGithub","html_url":"https://my.enterprise.com/PyGithub","followers_url":"https://my.enterprise.com/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"network_count":1715,"subscribers_count":111} + +https +GET +my.enterprise.com +None +/api/v3/repos/PyGithub/PyGithub/pulls/31 +{'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'enterprise.com'), ('Date', 'Sat, 20 Jan 2024 09:58:50 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"add6f9aeb7d78b7a86d664f8107ca57bac6312a49fa4a9279afaebe7180405e5"'), ('Last-Modified', 'Thu, 21 Sep 2023 07:32:37 GMT'), ('github-authentication-token-expiration', '2024-02-19 10:58:06 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-accepted-github-permissions', 'pull_requests=read; contents=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4997'), ('X-RateLimit-Reset', '1705746614'), ('X-RateLimit-Used', '3'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'B714:354E89:774D594:78D06E8:65AB995A')] +{"url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/31","id":1436215,"node_id":"MDExOlB1bGxSZXF1ZXN0MTQzNjIxNQ==","html_url":"https://my.enterprise.com/PyGithub/PyGithub/pull/31","diff_url":"https://my.enterprise.com/PyGithub/PyGithub/pull/31.diff","patch_url":"https://my.enterprise.com/PyGithub/PyGithub/pull/31.patch","issue_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/31","number":31,"state":"closed","locked":false,"title":"Title edited by PyGithub","user":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/jacquev6","html_url":"https://my.enterprise.com/jacquev6","followers_url":"https://my.enterprise.com/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/jacquev6/received_events","type":"User","site_admin":false},"body":"Body edited by PyGithub\n","created_at":"2012-05-27T09:25:36Z","updated_at":"2018-06-25T12:54:43Z","closed_at":"2012-05-27T10:29:07Z","merged_at":"2012-05-27T10:29:07Z","merge_commit_sha":"28ae6dd10ebccd5eaf8db8dacb5b699ee7f4a663","assignee":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/jacquev6","html_url":"https://my.enterprise.com/jacquev6","followers_url":"https://my.enterprise.com/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/jacquev6/received_events","type":"User","site_admin":false},"assignees":[{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/jacquev6","html_url":"https://my.enterprise.com/jacquev6","followers_url":"https://my.enterprise.com/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/jacquev6/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"draft":false,"commits_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/31/commits","review_comments_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/31/comments","review_comment_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/comments{/number}","comments_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/31/comments","statuses_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/statuses/8a4f306d4b223682dd19410d4a9150636ebe4206","head":{"label":null,"ref":"master","sha":"8a4f306d4b223682dd19410d4a9150636ebe4206","user":null,"repo":null},"base":{"label":"PyGithub:topic/RewriteWithGeneratedCode","ref":"topic/RewriteWithGeneratedCode","sha":"ed866fc43833802ab553e5ff8581c81bb00dd433","user":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/PyGithub","html_url":"https://my.enterprise.com/PyGithub","followers_url":"https://my.enterprise.com/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"repo":{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars.githubusercontent.com/u/11288996?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/PyGithub","html_url":"https://my.enterprise.com/PyGithub","followers_url":"https://my.enterprise.com/api/v3/users/PyGithub/followers","following_url":"https://my.enterprise.com/api/v3/users/PyGithub/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/PyGithub/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/PyGithub/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/PyGithub/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/PyGithub/orgs","repos_url":"https://my.enterprise.com/api/v3/users/PyGithub/repos","events_url":"https://my.enterprise.com/api/v3/users/PyGithub/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/PyGithub/received_events","type":"Organization","site_admin":false},"html_url":"https://my.enterprise.com/PyGithub/PyGithub","description":"Typed interactions with the GitHub API v3","fork":false,"url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub","forks_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/forks","keys_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/keys{/key_id}","collaborators_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/collaborators{/collaborator}","teams_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/teams","hooks_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/hooks","issue_events_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/events{/number}","events_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/events","assignees_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/assignees{/user}","branches_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/branches{/branch}","tags_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/tags","blobs_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/blobs{/sha}","git_tags_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/tags{/sha}","git_refs_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/refs{/sha}","trees_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/trees{/sha}","statuses_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/statuses/{sha}","languages_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/languages","stargazers_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/stargazers","contributors_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/contributors","subscribers_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/subscribers","subscription_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/subscription","commits_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/commits{/sha}","git_commits_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/git/commits{/sha}","comments_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/comments{/number}","issue_comment_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/comments{/number}","contents_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/contents/{+path}","compare_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/compare/{base}...{head}","merges_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/merges","archive_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/{archive_format}{/ref}","downloads_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/downloads","issues_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues{/number}","pulls_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls{/number}","milestones_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/milestones{/number}","notifications_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/notifications{?since,all,participating}","labels_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/labels{/name}","releases_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/releases{/id}","deployments_url":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/deployments","created_at":"2012-02-25T12:53:47Z","updated_at":"2024-01-20T06:37:31Z","pushed_at":"2024-01-19T20:38:15Z","git_url":"git://my.enterprise.com/PyGithub/PyGithub.git","ssh_url":"git@my.enterprise.com:PyGithub/PyGithub.git","clone_url":"https://my.enterprise.com/PyGithub/PyGithub.git","svn_url":"https://my.enterprise.com/PyGithub/PyGithub","homepage":"https://pygithub.readthedocs.io/","size":15500,"stargazers_count":6484,"watchers_count":6484,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1715,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":288,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://my.enterprise.com/api/v3/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["github","github-api","pygithub","python"],"visibility":"public","forks":1715,"open_issues":288,"watchers":6484,"default_branch":"main"}},"_links":{"self":{"href":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/31"},"html":{"href":"https://my.enterprise.com/PyGithub/PyGithub/pull/31"},"issue":{"href":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/31"},"comments":{"href":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/issues/31/comments"},"review_comments":{"href":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/31/comments"},"review_comment":{"href":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/comments{/number}"},"commits":{"href":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/pulls/31/commits"},"statuses":{"href":"https://my.enterprise.com/api/v3/repos/PyGithub/PyGithub/statuses/8a4f306d4b223682dd19410d4a9150636ebe4206"}},"author_association":"MEMBER","auto_merge":null,"active_lock_reason":null,"merged":true,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://my.enterprise.com/api/v3/users/jacquev6","html_url":"https://my.enterprise.com/jacquev6","followers_url":"https://my.enterprise.com/api/v3/users/jacquev6/followers","following_url":"https://my.enterprise.com/api/v3/users/jacquev6/following{/other_user}","gists_url":"https://my.enterprise.com/api/v3/users/jacquev6/gists{/gist_id}","starred_url":"https://my.enterprise.com/api/v3/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://my.enterprise.com/api/v3/users/jacquev6/subscriptions","organizations_url":"https://my.enterprise.com/api/v3/users/jacquev6/orgs","repos_url":"https://my.enterprise.com/api/v3/users/jacquev6/repos","events_url":"https://my.enterprise.com/api/v3/users/jacquev6/events{/privacy}","received_events_url":"https://my.enterprise.com/api/v3/users/jacquev6/received_events","type":"User","site_admin":false},"comments":1,"review_comments":2,"maintainer_can_modify":false,"commits":3,"additions":511,"deletions":384,"changed_files":45} + +https +POST +my.enterprise.com +None +/api/graphql +{'User-Agent': 'PyGithub/Python', 'Content-Type': 'application/json'} +{"query": "mutation DisablePullRequestAutoMerge($input: DisablePullRequestAutoMergeInput!) { disablePullRequestAutoMerge(input: $input) { actor { avatarUrl login resourcePath url } clientMutationId } }", "variables": {"input": {"pullRequestId": "MDExOlB1bGxSZXF1ZXN0MTQzNjIxNQ=="}}} +200 +[('Server', 'enterprise.com'), ('Date', 'Wed, 07 Jun 2023 08:27:45 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"1573389419d98a2b3d9a6b1fc058a68f1fc3d31108ccfdab8ca4121153626211"'), ('Last-Modified', 'Wed, 07 Jun 2023 04:02:03 GMT'), ('X-OAuth-Scopes', 'public_repo'), ('X-Accepted-OAuth-Scopes', 'repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4959'), ('X-RateLimit-Reset', '1686126614'), ('X-RateLimit-Used', '41'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '8A96:10854:895AE2:8AB25B:64803F81')] +{"data": {"disablePullRequestAutoMerge": {"actor": {"avatarUrl": "https://avatars.githubusercontent.com/u/14806300?u=786f9f8ef8782d45381b01580f7f7783cf9c7e37&v=4", "login": "heitorpolidoro", "resourcePath": "/heitorpolidoro", "url": "https://my.enterprise.com/api/v3/heitorpolidoro"}, "clientMutationId": null}}}