From 10816389d2572f0db346bcf269ccdf993236b5dc Mon Sep 17 00:00:00 2001 From: Sasha Chung <50770626+nuang-ee@users.noreply.github.com> Date: Thu, 1 Jun 2023 17:41:33 +0900 Subject: [PATCH] Add `name`, `display_title` and `path` attributes to `WorkflowRun` (#2397) --- github/WorkflowRun.py | 33 ++++++++ github/WorkflowRun.pyi | 10 +++ tests/ReplayData/WorkflowRun.setUp.txt | 10 +-- tests/ReplayData/WorkflowRun.test_cancel.txt | 19 ++++- tests/ReplayData/WorkflowRun.test_delete.txt | 14 ++-- tests/ReplayData/WorkflowRun.test_rerun.txt | 20 ++++- ...flowRun.test_rerun_with_successful_run.txt | 12 +-- tests/ReplayData/WorkflowRun.test_timing.txt | 6 +- tests/WorkflowRun.py | 80 ++++++++++++------- 9 files changed, 148 insertions(+), 56 deletions(-) diff --git a/github/WorkflowRun.py b/github/WorkflowRun.py index 1e8e00e4..da815f9e 100644 --- a/github/WorkflowRun.py +++ b/github/WorkflowRun.py @@ -44,6 +44,14 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject): self._completeIfNotSet(self._id) return self._id.value + @property + def name(self): + """ + :type: string + """ + self._completeIfNotSet(self._name) + return self._name.value + @property def head_branch(self): """ @@ -60,6 +68,22 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject): self._completeIfNotSet(self._head_sha) return self._head_sha.value + @property + def display_title(self): + """ + :type: string + """ + self._completeIfNotSet(self._display_title) + return self._display_title.value + + @property + def path(self): + """ + :type: string + """ + self._completeIfNotSet(self._path) + return self._path.value + @property def run_attempt(self): """ @@ -280,8 +304,11 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject): def _initAttributes(self): self._id = github.GithubObject.NotSet + self._name = github.GithubObject.NotSet self._head_branch = github.GithubObject.NotSet self._head_sha = github.GithubObject.NotSet + self._display_title = github.GithubObject.NotSet + self._path = github.GithubObject.NotSet self._run_attempt = github.GithubObject.NotSet self._run_number = github.GithubObject.NotSet self._event = github.GithubObject.NotSet @@ -308,10 +335,16 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject): def _useAttributes(self, attributes): if "id" in attributes: # pragma no branch self._id = self._makeIntAttribute(attributes["id"]) + if "name" in attributes: # pragma no branch + self._name = self._makeStringAttribute(attributes["name"]) if "head_branch" in attributes: # pragma no branch self._head_branch = self._makeStringAttribute(attributes["head_branch"]) if "head_sha" in attributes: # pragma no branch self._head_sha = self._makeStringAttribute(attributes["head_sha"]) + if "display_title" in attributes: # pragma no branch + self._display_title = self._makeStringAttribute(attributes["display_title"]) + if "path" in attributes: # pragma no branch + self._path = self._makeStringAttribute(attributes["path"]) if "run_attempt" in attributes: # pragma no branch self._run_attempt = self._makeIntAttribute(attributes["run_attempt"]) if "run_number" in attributes: # pragma no branch diff --git a/github/WorkflowRun.pyi b/github/WorkflowRun.pyi index 8874e2f5..03f698ac 100644 --- a/github/WorkflowRun.pyi +++ b/github/WorkflowRun.pyi @@ -17,12 +17,22 @@ class WorkflowRun(CompletableGithubObject): @property def id(self) -> int: ... @property + def name(self) -> str: ... + @property def head_branch(self) -> str: ... @property def head_sha(self) -> str: ... @property + def path(self) -> str: ... + @property + def display_title(self) -> str: ... + @property def run_number(self) -> int: ... @property + def run_attempt(self) -> int: ... + @property + def run_started_at(self) -> str: ... + @property def event(self) -> str: ... @property def status(self) -> str: ... diff --git a/tests/ReplayData/WorkflowRun.setUp.txt b/tests/ReplayData/WorkflowRun.setUp.txt index ff0811a2..b6e92db4 100644 --- a/tests/ReplayData/WorkflowRun.setUp.txt +++ b/tests/ReplayData/WorkflowRun.setUp.txt @@ -6,17 +6,17 @@ None {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 200 -[('Date', 'Fri, 26 Jun 2020 04:57:24 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4968'), ('X-RateLimit-Reset', '1593150230'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"fa3880e1c40ac490225d387ac4cfce43"'), ('Last-Modified', 'Fri, 26 Jun 2020 00:26:41 GMT'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', 'repo'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D198:691B:8567C:9A0E3:5EF58033')] -{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars0.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":"2020-06-26T00:26:41Z","pushed_at":"2020-06-26T04:51:23Z","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":12857,"stargazers_count":3555,"watchers_count":3555,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1141,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":62,"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"},"forks":1141,"open_issues":62,"watchers":3555,"default_branch":"master","permissions":{"admin":false,"push":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":true,"allow_rebase_merge":true,"delete_branch_on_merge":true,"organization":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars0.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":1141,"subscribers_count":104} +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:57 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"0706795c32b8ad63fd9012d601a24d0836c7778471b0132c68efde0f0d5eaf9d"'), ('Last-Modified', 'Fri, 13 Jan 2023 11:44:59 GMT'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '20'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '40'), ('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', 'CBC4:1668:8154:D152:63C15A7C')] +{"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":"2023-01-13T11:44:59Z","pushed_at":"2023-01-13T13:19:21Z","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":13674,"stargazers_count":5733,"watchers_count":5733,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"has_discussions":true,"forks_count":1583,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":189,"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":1583,"open_issues":189,"watchers":5733,"default_branch":"master","temp_clone_token":null,"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":1583,"subscribers_count":114} https GET api.github.com None -/repos/PyGithub/PyGithub/actions/runs/148274629 +/repos/PyGithub/PyGithub/actions/runs/3881497935 {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 200 -[('Date', 'Fri, 26 Jun 2020 04:57:24 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4967'), ('X-RateLimit-Reset', '1593150230'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"3c9ed6e37979d7c274b39a804ad0aeaa"'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D19A:244A:99554:ACEA1:5EF58034')] -{"id":148274629,"node_id":"MDExOldvcmtmbG93UnVuMTQ4Mjc0NjI5","head_branch":"more-precise-typing","head_sha":"f91c729d786efcc93db47dd755313a26172c105e","run_number":162,"event":"pull_request","status":"completed","conclusion":"failure","workflow_id":1026390,"url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/148274629","pull_requests":[],"created_at":"2020-06-26T04:51:26Z","updated_at":"2020-06-26T04:52:59Z","jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/843925976","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/rerun","workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1026390","head_commit":{"id":"f91c729d786efcc93db47dd755313a26172c105e","tree_id":"0abaa826c490b60d95fe4a9865737c14ee664e4e","message":"More precise typing","timestamp":"2020-06-26T04:50:13Z","author":{"name":"Steve Kowalik","email":"steven@wedontsleep.org"},"committer":{"name":"Steve Kowalik","email":"steven@wedontsleep.org"}},"repository":{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars0.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"},"head_repository":{"id":129349732,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkzNDk3MzI=","name":"PyGithub","full_name":"s-t-e-v-e-n-k/PyGithub","private":false,"owner":{"login":"s-t-e-v-e-n-k","id":15225059,"node_id":"MDQ6VXNlcjE1MjI1MDU5","avatar_url":"https://avatars0.githubusercontent.com/u/15225059?v=4","gravatar_id":"","url":"https://api.github.com/users/s-t-e-v-e-n-k","html_url":"https://github.com/s-t-e-v-e-n-k","followers_url":"https://api.github.com/users/s-t-e-v-e-n-k/followers","following_url":"https://api.github.com/users/s-t-e-v-e-n-k/following{/other_user}","gists_url":"https://api.github.com/users/s-t-e-v-e-n-k/gists{/gist_id}","starred_url":"https://api.github.com/users/s-t-e-v-e-n-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-t-e-v-e-n-k/subscriptions","organizations_url":"https://api.github.com/users/s-t-e-v-e-n-k/orgs","repos_url":"https://api.github.com/users/s-t-e-v-e-n-k/repos","events_url":"https://api.github.com/users/s-t-e-v-e-n-k/events{/privacy}","received_events_url":"https://api.github.com/users/s-t-e-v-e-n-k/received_events","type":"User","site_admin":false},"html_url":"https://github.com/s-t-e-v-e-n-k/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub","forks_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/forks","keys_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/teams","hooks_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/events","assignees_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/tags","blobs_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/languages","stargazers_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/subscription","commits_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/merges","archive_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/downloads","issues_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/deployments"}} +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:57 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"f21ec6fcb14acc25564041c0c4db5b83978384c955ada9236f690c06e230a074"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '19'), ('X-RateLimit-Reset', '1673619381'), ('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', 'CBC5:3941:15CB7:1ADA3:63C15A7D')] +{"id":3881497935,"name":"CI","node_id":"WFR_kwLOADYVqs7nWvVP","head_branch":"feat/workflow-run","head_sha":"c6e5cac67a58a4eb11f1f28567a77a6e2cc8ee98","path":".github/workflows/ci.yml","display_title":"TEST PR","run_number":930,"event":"pull_request","status":"completed","conclusion":"success","workflow_id":1903133,"check_suite_id":10279069747,"check_suite_node_id":"CS_kwDOADYVqs8AAAACZK4oMw","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/3881497935","pull_requests":[],"created_at":"2023-01-10T08:24:19Z","updated_at":"2023-01-10T08:28:20Z","actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"run_attempt":1,"referenced_workflows":[],"run_started_at":"2023-01-10T08:24:19Z","triggering_actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/10279069747","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"c6e5cac67a58a4eb11f1f28567a77a6e2cc8ee98","tree_id":"3ce398f9ee2571549b7fea545bfa5bf28e3ca0f5","message":"add attribute 'name' on WorkflowRun","timestamp":"2023-01-10T08:08:37Z","author":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"},"committer":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"}},"repository":{"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"},"head_repository":{"id":587206601,"node_id":"R_kgDOIwAPyQ","name":"PyGithub","full_name":"nuang-ee/PyGithub","private":false,"owner":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nuang-ee/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/nuang-ee/PyGithub","forks_url":"https://api.github.com/repos/nuang-ee/PyGithub/forks","keys_url":"https://api.github.com/repos/nuang-ee/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuang-ee/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuang-ee/PyGithub/teams","hooks_url":"https://api.github.com/repos/nuang-ee/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/nuang-ee/PyGithub/events","assignees_url":"https://api.github.com/repos/nuang-ee/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/nuang-ee/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/tags","blobs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuang-ee/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/nuang-ee/PyGithub/languages","stargazers_url":"https://api.github.com/repos/nuang-ee/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/nuang-ee/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscription","commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuang-ee/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuang-ee/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/nuang-ee/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuang-ee/PyGithub/merges","archive_url":"https://api.github.com/repos/nuang-ee/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuang-ee/PyGithub/downloads","issues_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/nuang-ee/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/nuang-ee/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/nuang-ee/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuang-ee/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/nuang-ee/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/nuang-ee/PyGithub/deployments"}} diff --git a/tests/ReplayData/WorkflowRun.test_cancel.txt b/tests/ReplayData/WorkflowRun.test_cancel.txt index 4c82b3f3..dc45a1ee 100644 --- a/tests/ReplayData/WorkflowRun.test_cancel.txt +++ b/tests/ReplayData/WorkflowRun.test_cancel.txt @@ -1,11 +1,22 @@ +https +GET +api.github.com +None +/repos/PyGithub/PyGithub/actions/runs/3911660493 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:52 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"74bbb9a446cbc1fccb303d24a4c6f004ba916928fc1d581f90d7ae57b73b5345"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '34'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '26'), ('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', 'CBB6:3941:15C6C:1AD40:63C15A77')] +{"id":3911660493,"name":"CI","node_id":"WFR_kwLOADYVqs7pJzPN","head_branch":"feat/workflow-run","head_sha":"f8de1574818fccb40aa2a4d89a5c423a44753258","path":".github/workflows/ci.yml","display_title":"TEST PR","run_number":934,"event":"pull_request","status":"in_progress","conclusion":null,"workflow_id":1903133,"check_suite_id":10354960977,"check_suite_node_id":"CS_kwDOADYVqs8AAAACaTQqUQ","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3911660493","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/3911660493","pull_requests":[],"created_at":"2023-01-13T13:19:24Z","updated_at":"2023-01-13T13:19:37Z","actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"run_attempt":1,"referenced_workflows":[],"run_started_at":"2023-01-13T13:19:24Z","triggering_actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3911660493/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3911660493/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/10354960977","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3911660493/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3911660493/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3911660493/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"f8de1574818fccb40aa2a4d89a5c423a44753258","tree_id":"b5c93d407638a09461028a6f0b6e58fa38c5fc15","message":"trigger CI","timestamp":"2023-01-13T13:16:03Z","author":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"},"committer":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"}},"repository":{"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"},"head_repository":{"id":587206601,"node_id":"R_kgDOIwAPyQ","name":"PyGithub","full_name":"nuang-ee/PyGithub","private":false,"owner":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nuang-ee/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/nuang-ee/PyGithub","forks_url":"https://api.github.com/repos/nuang-ee/PyGithub/forks","keys_url":"https://api.github.com/repos/nuang-ee/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuang-ee/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuang-ee/PyGithub/teams","hooks_url":"https://api.github.com/repos/nuang-ee/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/nuang-ee/PyGithub/events","assignees_url":"https://api.github.com/repos/nuang-ee/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/nuang-ee/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/tags","blobs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuang-ee/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/nuang-ee/PyGithub/languages","stargazers_url":"https://api.github.com/repos/nuang-ee/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/nuang-ee/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscription","commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuang-ee/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuang-ee/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/nuang-ee/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuang-ee/PyGithub/merges","archive_url":"https://api.github.com/repos/nuang-ee/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuang-ee/PyGithub/downloads","issues_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/nuang-ee/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/nuang-ee/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/nuang-ee/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuang-ee/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/nuang-ee/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/nuang-ee/PyGithub/deployments"}} + https POST api.github.com None -/repos/PyGithub/PyGithub/actions/runs/148274629/cancel +/repos/PyGithub/PyGithub/actions/runs/3911660493/cancel {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None -202 -[('Date', 'Fri, 26 Jun 2020 05:04:32 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Server', 'GitHub.com'), ('Status', '202 Accepted'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4948'), ('X-RateLimit-Reset', '1593150230'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('X-GitHub-Request-Id', '9B56:4D5E:1A2549:1E86BB:5EF581DF')] -{} +403 +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:52 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '33'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '27'), ('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'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'CBB7:0299:F916:149FE:63C15A78')] +{"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/reference/actions#cancel-a-workflow-run"} diff --git a/tests/ReplayData/WorkflowRun.test_delete.txt b/tests/ReplayData/WorkflowRun.test_delete.txt index 3e812132..203f0544 100644 --- a/tests/ReplayData/WorkflowRun.test_delete.txt +++ b/tests/ReplayData/WorkflowRun.test_delete.txt @@ -2,21 +2,21 @@ https GET api.github.com None -/repos/PyGithub/PyGithub/actions/runs/1327550476 +/repos/PyGithub/PyGithub/actions/runs/3881497935 {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 200 -[('Server', 'GitHub.com'), ('Date', 'Fri, 15 Oct 2021 04:26:27 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/"9b4f8e8ab5123615826192c4e38f4d4062e898032cfecfa59e65d37afc169db4"'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4994'), ('X-RateLimit-Reset', '1634274619'), ('X-RateLimit-Used', '6'), ('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, 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', 'E6E2:25CB:1AFF04:1DC5D9:616902F2')] -{"id":1327550476,"name":"CI","node_id":"WFR_kwLOADYVqs5PINAM","head_branch":"python-310","head_sha":"952d71013bba0ca8027ff6aa4d707b966a2625f9","run_number":540,"event":"pull_request","status":"completed","conclusion":"failure","workflow_id":1903133,"check_suite_id":4014419209,"check_suite_node_id":"CS_kwDOADYVqs7vRy0J","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/1327550476","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/1327550476","pull_requests":[],"created_at":"2021-10-11T04:50:48Z","updated_at":"2021-10-11T04:51:10Z","run_attempt":1,"run_started_at":"2021-10-11T04:50:48Z","jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/1327550476/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/1327550476/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/4014419209","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/1327550476/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/1327550476/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/1327550476/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"952d71013bba0ca8027ff6aa4d707b966a2625f9","tree_id":"4f3ccf0128dbc73c849519d50fa63e702d2acdbd","message":"Add support for Python 3.10\n\nNow that Python 3.10 has been released, we should test it in CI.","timestamp":"2021-10-11T04:50:06Z","author":{"name":"Steve Kowalik","email":"steven@wedontsleep.org"},"committer":{"name":"Steve Kowalik","email":"steven@wedontsleep.org"}},"repository":{"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"},"head_repository":{"id":129349732,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkzNDk3MzI=","name":"PyGithub","full_name":"s-t-e-v-e-n-k/PyGithub","private":false,"owner":{"login":"s-t-e-v-e-n-k","id":15225059,"node_id":"MDQ6VXNlcjE1MjI1MDU5","avatar_url":"https://avatars.githubusercontent.com/u/15225059?v=4","gravatar_id":"","url":"https://api.github.com/users/s-t-e-v-e-n-k","html_url":"https://github.com/s-t-e-v-e-n-k","followers_url":"https://api.github.com/users/s-t-e-v-e-n-k/followers","following_url":"https://api.github.com/users/s-t-e-v-e-n-k/following{/other_user}","gists_url":"https://api.github.com/users/s-t-e-v-e-n-k/gists{/gist_id}","starred_url":"https://api.github.com/users/s-t-e-v-e-n-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-t-e-v-e-n-k/subscriptions","organizations_url":"https://api.github.com/users/s-t-e-v-e-n-k/orgs","repos_url":"https://api.github.com/users/s-t-e-v-e-n-k/repos","events_url":"https://api.github.com/users/s-t-e-v-e-n-k/events{/privacy}","received_events_url":"https://api.github.com/users/s-t-e-v-e-n-k/received_events","type":"User","site_admin":false},"html_url":"https://github.com/s-t-e-v-e-n-k/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub","forks_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/forks","keys_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/teams","hooks_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/events","assignees_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/tags","blobs_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/languages","stargazers_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/subscription","commits_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/merges","archive_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/downloads","issues_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/deployments"}} +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:53 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"f21ec6fcb14acc25564041c0c4db5b83978384c955ada9236f690c06e230a074"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '30'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '30'), ('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', 'CBBA:12CC:709E:C082:63C15A79')] +{"id":3881497935,"name":"CI","node_id":"WFR_kwLOADYVqs7nWvVP","head_branch":"feat/workflow-run","head_sha":"c6e5cac67a58a4eb11f1f28567a77a6e2cc8ee98","path":".github/workflows/ci.yml","display_title":"TEST PR","run_number":930,"event":"pull_request","status":"completed","conclusion":"success","workflow_id":1903133,"check_suite_id":10279069747,"check_suite_node_id":"CS_kwDOADYVqs8AAAACZK4oMw","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/3881497935","pull_requests":[],"created_at":"2023-01-10T08:24:19Z","updated_at":"2023-01-10T08:28:20Z","actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"run_attempt":1,"referenced_workflows":[],"run_started_at":"2023-01-10T08:24:19Z","triggering_actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/10279069747","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"c6e5cac67a58a4eb11f1f28567a77a6e2cc8ee98","tree_id":"3ce398f9ee2571549b7fea545bfa5bf28e3ca0f5","message":"add attribute 'name' on WorkflowRun","timestamp":"2023-01-10T08:08:37Z","author":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"},"committer":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"}},"repository":{"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"},"head_repository":{"id":587206601,"node_id":"R_kgDOIwAPyQ","name":"PyGithub","full_name":"nuang-ee/PyGithub","private":false,"owner":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nuang-ee/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/nuang-ee/PyGithub","forks_url":"https://api.github.com/repos/nuang-ee/PyGithub/forks","keys_url":"https://api.github.com/repos/nuang-ee/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuang-ee/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuang-ee/PyGithub/teams","hooks_url":"https://api.github.com/repos/nuang-ee/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/nuang-ee/PyGithub/events","assignees_url":"https://api.github.com/repos/nuang-ee/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/nuang-ee/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/tags","blobs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuang-ee/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/nuang-ee/PyGithub/languages","stargazers_url":"https://api.github.com/repos/nuang-ee/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/nuang-ee/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscription","commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuang-ee/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuang-ee/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/nuang-ee/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuang-ee/PyGithub/merges","archive_url":"https://api.github.com/repos/nuang-ee/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuang-ee/PyGithub/downloads","issues_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/nuang-ee/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/nuang-ee/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/nuang-ee/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuang-ee/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/nuang-ee/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/nuang-ee/PyGithub/deployments"}} https DELETE api.github.com None -/repos/PyGithub/PyGithub/actions/runs/1327550476 +/repos/PyGithub/PyGithub/actions/runs/3881497935 {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None -204 -[('Server', 'GitHub.com'), ('Date', 'Fri, 15 Oct 2021 04:26:27 GMT'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4993'), ('X-RateLimit-Reset', '1634274619'), ('X-RateLimit-Used', '7'), ('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, 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'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('X-GitHub-Request-Id', 'E6E4:25CA:8C5D5:B7A0F:616902F3')] - +403 +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:53 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '29'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '31'), ('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'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'CBBB:4B43:7BAC:CB5C:63C15A79')] +{"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/reference/actions#delete-a-workflow-run"} diff --git a/tests/ReplayData/WorkflowRun.test_rerun.txt b/tests/ReplayData/WorkflowRun.test_rerun.txt index ac9b2140..8c7241c2 100644 --- a/tests/ReplayData/WorkflowRun.test_rerun.txt +++ b/tests/ReplayData/WorkflowRun.test_rerun.txt @@ -1,10 +1,22 @@ +https +GET +api.github.com +None +/repos/PyGithub/PyGithub/actions/runs/3910280793 +{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} +None +200 +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:55 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"89d9fde12e552b2852b7a1dbda3882f4d2f4f9288ca086f90e002a1d813d9179"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '26'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '34'), ('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', 'CBBE:4413:7A50:CA12:63C15A7A')] +{"id":3910280793,"name":"CI","node_id":"WFR_kwLOADYVqs7pEiZZ","head_branch":"feat/workflow-run","head_sha":"867fef461ec43e56fab73556ac4570d663a6a733","path":".github/workflows/ci.yml","display_title":"TEST PR","run_number":932,"event":"pull_request","status":"completed","conclusion":"failure","workflow_id":1903133,"check_suite_id":10351510366,"check_suite_node_id":"CS_kwDOADYVqs8AAAACaP-DXg","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3910280793","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/3910280793","pull_requests":[],"created_at":"2023-01-13T10:02:50Z","updated_at":"2023-01-13T10:04:23Z","actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"run_attempt":1,"referenced_workflows":[],"run_started_at":"2023-01-13T10:02:50Z","triggering_actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3910280793/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3910280793/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/10351510366","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3910280793/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3910280793/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3910280793/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"867fef461ec43e56fab73556ac4570d663a6a733","tree_id":"be6b8e31e143ad936bbeaaa292a899e3ef056030","message":"update tests","timestamp":"2023-01-13T10:02:11Z","author":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"},"committer":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"}},"repository":{"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"},"head_repository":{"id":587206601,"node_id":"R_kgDOIwAPyQ","name":"PyGithub","full_name":"nuang-ee/PyGithub","private":false,"owner":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nuang-ee/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/nuang-ee/PyGithub","forks_url":"https://api.github.com/repos/nuang-ee/PyGithub/forks","keys_url":"https://api.github.com/repos/nuang-ee/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuang-ee/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuang-ee/PyGithub/teams","hooks_url":"https://api.github.com/repos/nuang-ee/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/nuang-ee/PyGithub/events","assignees_url":"https://api.github.com/repos/nuang-ee/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/nuang-ee/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/tags","blobs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuang-ee/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/nuang-ee/PyGithub/languages","stargazers_url":"https://api.github.com/repos/nuang-ee/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/nuang-ee/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscription","commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuang-ee/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuang-ee/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/nuang-ee/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuang-ee/PyGithub/merges","archive_url":"https://api.github.com/repos/nuang-ee/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuang-ee/PyGithub/downloads","issues_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/nuang-ee/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/nuang-ee/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/nuang-ee/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuang-ee/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/nuang-ee/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/nuang-ee/PyGithub/deployments"}} + https POST api.github.com None -/repos/PyGithub/PyGithub/actions/runs/148274629/rerun +/repos/PyGithub/PyGithub/actions/runs/3910280793/rerun {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None -201 -[('Date', 'Fri, 26 Jun 2020 05:04:31 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Server', 'GitHub.com'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4949'), ('X-RateLimit-Reset', '1593150230'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', '"f4f61bef4e0189176324081da79fde4b"'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('X-GitHub-Request-Id', '9B54:4D5E:1A253C:1E86A7:5EF581DF')] -{} +403 +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:55 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '25'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '35'), ('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'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'CBBF:42BA:0E45:5D33:63C15A7B')] +{"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/reference/actions#re-run-a-workflow"} + diff --git a/tests/ReplayData/WorkflowRun.test_rerun_with_successful_run.txt b/tests/ReplayData/WorkflowRun.test_rerun_with_successful_run.txt index 701273fd..8f8f8de5 100644 --- a/tests/ReplayData/WorkflowRun.test_rerun_with_successful_run.txt +++ b/tests/ReplayData/WorkflowRun.test_rerun_with_successful_run.txt @@ -2,21 +2,21 @@ https GET api.github.com None -/repos/PyGithub/PyGithub/actions/runs/145732882 +/repos/PyGithub/PyGithub/actions/runs/3881497935 {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 200 -[('Date', 'Fri, 26 Jun 2020 04:57:25 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4966'), ('X-RateLimit-Reset', '1593150231'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"ccd8094f86c973ecdaa882db4bc9b97c"'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D19C:12AD:784D1:8D22C:5EF58034')] -{"id":145732882,"node_id":"MDExOldvcmtmbG93UnVuMTQ1NzMyODgy","head_branch":"typing-get-user","head_sha":"da6adff82e5a027437fd6e8c24ce938d7ec2ec65","run_number":150,"event":"pull_request","status":"completed","conclusion":"success","workflow_id":1026390,"url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/145732882","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/145732882","pull_requests":[],"created_at":"2020-06-24T04:53:42Z","updated_at":"2020-06-24T04:56:28Z","jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/145732882/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/145732882/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/834160296","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/145732882/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/145732882/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/145732882/rerun","workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1026390","head_commit":{"id":"da6adff82e5a027437fd6e8c24ce938d7ec2ec65","tree_id":"ec4daf4a45d6efc7e94fe14fb41f1770220477d9","message":"More precise typing for MainClass.get_user()\n\nUse typing.overload for MainClass.get_user() since it can return two\ndisparate types. Correct the docstring for it, as well as locking down\nSphinx to <3 due to built docs issue and drive-by link correction.\n\nFixes #1550","timestamp":"2020-06-24T04:46:51Z","author":{"name":"Steve Kowalik","email":"steven@wedontsleep.org"},"committer":{"name":"Steve Kowalik","email":"steven@wedontsleep.org"}},"repository":{"id":3544490,"node_id":"MDEwOlJlcG9zaXRvcnkzNTQ0NDkw","name":"PyGithub","full_name":"PyGithub/PyGithub","private":false,"owner":{"login":"PyGithub","id":11288996,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjg4OTk2","avatar_url":"https://avatars0.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"},"head_repository":{"id":129349732,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkzNDk3MzI=","name":"PyGithub","full_name":"s-t-e-v-e-n-k/PyGithub","private":false,"owner":{"login":"s-t-e-v-e-n-k","id":15225059,"node_id":"MDQ6VXNlcjE1MjI1MDU5","avatar_url":"https://avatars0.githubusercontent.com/u/15225059?v=4","gravatar_id":"","url":"https://api.github.com/users/s-t-e-v-e-n-k","html_url":"https://github.com/s-t-e-v-e-n-k","followers_url":"https://api.github.com/users/s-t-e-v-e-n-k/followers","following_url":"https://api.github.com/users/s-t-e-v-e-n-k/following{/other_user}","gists_url":"https://api.github.com/users/s-t-e-v-e-n-k/gists{/gist_id}","starred_url":"https://api.github.com/users/s-t-e-v-e-n-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-t-e-v-e-n-k/subscriptions","organizations_url":"https://api.github.com/users/s-t-e-v-e-n-k/orgs","repos_url":"https://api.github.com/users/s-t-e-v-e-n-k/repos","events_url":"https://api.github.com/users/s-t-e-v-e-n-k/events{/privacy}","received_events_url":"https://api.github.com/users/s-t-e-v-e-n-k/received_events","type":"User","site_admin":false},"html_url":"https://github.com/s-t-e-v-e-n-k/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub","forks_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/forks","keys_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/teams","hooks_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/events","assignees_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/tags","blobs_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/languages","stargazers_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/subscription","commits_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/merges","archive_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/downloads","issues_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/s-t-e-v-e-n-k/PyGithub/deployments"}} +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:56 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"f21ec6fcb14acc25564041c0c4db5b83978384c955ada9236f690c06e230a074"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '22'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '38'), ('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', 'CBC2:0655:4CD6:9C43:63C15A7C')] +{"id":3881497935,"name":"CI","node_id":"WFR_kwLOADYVqs7nWvVP","head_branch":"feat/workflow-run","head_sha":"c6e5cac67a58a4eb11f1f28567a77a6e2cc8ee98","path":".github/workflows/ci.yml","display_title":"TEST PR","run_number":930,"event":"pull_request","status":"completed","conclusion":"success","workflow_id":1903133,"check_suite_id":10279069747,"check_suite_node_id":"CS_kwDOADYVqs8AAAACZK4oMw","url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935","html_url":"https://github.com/PyGithub/PyGithub/actions/runs/3881497935","pull_requests":[],"created_at":"2023-01-10T08:24:19Z","updated_at":"2023-01-10T08:28:20Z","actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"run_attempt":1,"referenced_workflows":[],"run_started_at":"2023-01-10T08:24:19Z","triggering_actor":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"jobs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/jobs","logs_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/logs","check_suite_url":"https://api.github.com/repos/PyGithub/PyGithub/check-suites/10279069747","artifacts_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/artifacts","cancel_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/cancel","rerun_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/rerun","previous_attempt_url":null,"workflow_url":"https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133","head_commit":{"id":"c6e5cac67a58a4eb11f1f28567a77a6e2cc8ee98","tree_id":"3ce398f9ee2571549b7fea545bfa5bf28e3ca0f5","message":"add attribute 'name' on WorkflowRun","timestamp":"2023-01-10T08:08:37Z","author":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"},"committer":{"name":"Sasha Chung","email":"sasha.chung@bucketplace.net"}},"repository":{"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"},"head_repository":{"id":587206601,"node_id":"R_kgDOIwAPyQ","name":"PyGithub","full_name":"nuang-ee/PyGithub","private":false,"owner":{"login":"nuang-ee","id":50770626,"node_id":"MDQ6VXNlcjUwNzcwNjI2","avatar_url":"https://avatars.githubusercontent.com/u/50770626?v=4","gravatar_id":"","url":"https://api.github.com/users/nuang-ee","html_url":"https://github.com/nuang-ee","followers_url":"https://api.github.com/users/nuang-ee/followers","following_url":"https://api.github.com/users/nuang-ee/following{/other_user}","gists_url":"https://api.github.com/users/nuang-ee/gists{/gist_id}","starred_url":"https://api.github.com/users/nuang-ee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuang-ee/subscriptions","organizations_url":"https://api.github.com/users/nuang-ee/orgs","repos_url":"https://api.github.com/users/nuang-ee/repos","events_url":"https://api.github.com/users/nuang-ee/events{/privacy}","received_events_url":"https://api.github.com/users/nuang-ee/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nuang-ee/PyGithub","description":"Typed interactions with the GitHub API v3","fork":true,"url":"https://api.github.com/repos/nuang-ee/PyGithub","forks_url":"https://api.github.com/repos/nuang-ee/PyGithub/forks","keys_url":"https://api.github.com/repos/nuang-ee/PyGithub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuang-ee/PyGithub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuang-ee/PyGithub/teams","hooks_url":"https://api.github.com/repos/nuang-ee/PyGithub/hooks","issue_events_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/events{/number}","events_url":"https://api.github.com/repos/nuang-ee/PyGithub/events","assignees_url":"https://api.github.com/repos/nuang-ee/PyGithub/assignees{/user}","branches_url":"https://api.github.com/repos/nuang-ee/PyGithub/branches{/branch}","tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/tags","blobs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuang-ee/PyGithub/statuses/{sha}","languages_url":"https://api.github.com/repos/nuang-ee/PyGithub/languages","stargazers_url":"https://api.github.com/repos/nuang-ee/PyGithub/stargazers","contributors_url":"https://api.github.com/repos/nuang-ee/PyGithub/contributors","subscribers_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscribers","subscription_url":"https://api.github.com/repos/nuang-ee/PyGithub/subscription","commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuang-ee/PyGithub/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuang-ee/PyGithub/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuang-ee/PyGithub/contents/{+path}","compare_url":"https://api.github.com/repos/nuang-ee/PyGithub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuang-ee/PyGithub/merges","archive_url":"https://api.github.com/repos/nuang-ee/PyGithub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuang-ee/PyGithub/downloads","issues_url":"https://api.github.com/repos/nuang-ee/PyGithub/issues{/number}","pulls_url":"https://api.github.com/repos/nuang-ee/PyGithub/pulls{/number}","milestones_url":"https://api.github.com/repos/nuang-ee/PyGithub/milestones{/number}","notifications_url":"https://api.github.com/repos/nuang-ee/PyGithub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuang-ee/PyGithub/labels{/name}","releases_url":"https://api.github.com/repos/nuang-ee/PyGithub/releases{/id}","deployments_url":"https://api.github.com/repos/nuang-ee/PyGithub/deployments"}} https POST api.github.com None -/repos/PyGithub/PyGithub/actions/runs/145732882/rerun +/repos/PyGithub/PyGithub/actions/runs/3881497935/rerun {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 403 -[('Date', 'Fri, 26 Jun 2020 04:57:25 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '403 Forbidden'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4965'), ('X-RateLimit-Reset', '1593150230'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'D19E:244B:1BE4BB:2053BE:5EF58035')] -{"message":"This workflow run cannot be rerun","documentation_url":"https://developer.github.com/v3/actions/workflow_runs/#re-run-a-workflow"} +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:56 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '21'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '39'), ('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'"), ('Vary', 'Accept-Encoding, Accept, X-Requested-With'), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', 'CBC3:1685:81F1:D1C6:63C15A7C')] +{"message":"Must have admin rights to Repository.","documentation_url":"https://docs.github.com/rest/reference/actions#re-run-a-workflow"} diff --git a/tests/ReplayData/WorkflowRun.test_timing.txt b/tests/ReplayData/WorkflowRun.test_timing.txt index afb199ef..fd350c6a 100644 --- a/tests/ReplayData/WorkflowRun.test_timing.txt +++ b/tests/ReplayData/WorkflowRun.test_timing.txt @@ -2,10 +2,10 @@ https GET api.github.com None -/repos/PyGithub/PyGithub/actions/runs/148274629/timing +/repos/PyGithub/PyGithub/actions/runs/3881497935/timing {'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'} None 200 -[('Date', 'Fri, 26 Jun 2020 05:25:09 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4935'), ('X-RateLimit-Reset', '1593150231'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding'), ('ETag', 'W/"d5c60782b947caaf365ec6da07f69a32"'), ('X-OAuth-Scopes', 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, read:packages, repo, user, workflow, write:discussion, write:packages'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, 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', '1; mode=block'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('X-GitHub-Request-Id', '9F74:5067:1B8264:1FF1A4:5EF586B5')] -{"billable":{},"run_duration_ms":105000} +[('Server', 'GitHub.com'), ('Date', 'Fri, 13 Jan 2023 13:19:58 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Cache-Control', 'public, max-age=60, s-maxage=60'), ('Vary', 'Accept, Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"8ec19a979b8290796ff8c533ce429b277e20807aa5b771b658a04c6375422fb3"'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '60'), ('X-RateLimit-Remaining', '18'), ('X-RateLimit-Reset', '1673619381'), ('X-RateLimit-Used', '42'), ('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', 'CBC6:0299:F963:14A67:63C15A7D')] +{"billable":{"UBUNTU":{"total_ms":0,"jobs":5,"job_runs":[{"job_id":10545727758,"duration_ms":0},{"job_id":10545727888,"duration_ms":0},{"job_id":10545728039,"duration_ms":0},{"job_id":10545728190,"duration_ms":0},{"job_id":10545728356,"duration_ms":0}]}},"run_duration_ms":241000} diff --git a/tests/WorkflowRun.py b/tests/WorkflowRun.py index 0fc2024a..42f5d9c0 100644 --- a/tests/WorkflowRun.py +++ b/tests/WorkflowRun.py @@ -29,83 +29,109 @@ class WorkflowRun(Framework.TestCase): def setUp(self): super().setUp() self.repo = self.g.get_repo("PyGithub/PyGithub") - self.workflow_run = self.repo.get_workflow_run(148274629) + self.workflow_run = self.repo.get_workflow_run(3881497935) def testAttributes(self): self.assertEqual( repr(self.workflow_run), - 'WorkflowRun(url="https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629", id=148274629)', + 'WorkflowRun(url="https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935", id=3881497935)', ) - self.assertEqual(self.workflow_run.id, 148274629) - self.assertEqual(self.workflow_run.head_branch, "more-precise-typing") + self.assertEqual(self.workflow_run.id, 3881497935) + self.assertEqual(self.workflow_run.name, "CI") + self.assertEqual(self.workflow_run.head_branch, "feat/workflow-run") self.assertEqual( - self.workflow_run.head_sha, "f91c729d786efcc93db47dd755313a26172c105e" + self.workflow_run.head_sha, "c6e5cac67a58a4eb11f1f28567a77a6e2cc8ee98" + ) + self.assertEqual(self.workflow_run.path, ".github/workflows/ci.yml") + self.assertEqual(self.workflow_run.display_title, "TEST PR") + self.assertEqual(self.workflow_run.run_number, 930) + self.assertEqual(self.workflow_run.run_attempt, 1) + self.assertEqual( + self.workflow_run.run_started_at, datetime.datetime(2023, 1, 10, 8, 24, 19) ) - self.assertEqual(self.workflow_run.run_number, 162) self.assertEqual(self.workflow_run.event, "pull_request") self.assertEqual(self.workflow_run.status, "completed") - self.assertEqual(self.workflow_run.conclusion, "failure") - self.assertEqual(self.workflow_run.workflow_id, 1026390) + self.assertEqual(self.workflow_run.conclusion, "success") + self.assertEqual(self.workflow_run.workflow_id, 1903133) self.assertEqual( self.workflow_run.url, - "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629", + "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935", ) self.assertEqual( self.workflow_run.html_url, - "https://github.com/PyGithub/PyGithub/actions/runs/148274629", + "https://github.com/PyGithub/PyGithub/actions/runs/3881497935", ) self.assertEqual(self.workflow_run.pull_requests, []) - created_at = datetime.datetime(2020, 6, 26, 4, 51, 26) + created_at = datetime.datetime(2023, 1, 10, 8, 24, 19) self.assertEqual(self.workflow_run.created_at, created_at) - updated_at = datetime.datetime(2020, 6, 26, 4, 52, 59) + updated_at = datetime.datetime(2023, 1, 10, 8, 28, 20) self.assertEqual(self.workflow_run.updated_at, updated_at) self.assertEqual( self.workflow_run.jobs_url, - "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/jobs", + "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/jobs", ) self.assertEqual( self.workflow_run.logs_url, - "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/logs", + "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/logs", ) self.assertEqual( self.workflow_run.check_suite_url, - "https://api.github.com/repos/PyGithub/PyGithub/check-suites/843925976", + "https://api.github.com/repos/PyGithub/PyGithub/check-suites/10279069747", ) self.assertEqual( self.workflow_run.artifacts_url, - "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/artifacts", + "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/artifacts", ) self.assertEqual( self.workflow_run.cancel_url, - "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/cancel", + "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/cancel", ) self.assertEqual( self.workflow_run.rerun_url, - "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/148274629/rerun", + "https://api.github.com/repos/PyGithub/PyGithub/actions/runs/3881497935/rerun", ) self.assertEqual( self.workflow_run.workflow_url, - "https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1026390", + "https://api.github.com/repos/PyGithub/PyGithub/actions/workflows/1903133", + ) + self.assertEqual( + self.workflow_run.head_commit.message, "add attribute 'name' on WorkflowRun" ) - self.assertEqual(self.workflow_run.head_commit.message, "More precise typing") self.assertEqual(self.workflow_run.repository.name, "PyGithub") self.assertEqual(self.workflow_run.head_repository.name, "PyGithub") def test_timing(self): timing = self.workflow_run.timing() - self.assertEqual(timing.billable, {}) - self.assertEqual(timing.run_duration_ms, 105000) + self.assertEqual( + timing.billable, + { + "UBUNTU": { + "job_runs": [ + {"duration_ms": 0, "job_id": 10545727758}, + {"duration_ms": 0, "job_id": 10545727888}, + {"duration_ms": 0, "job_id": 10545728039}, + {"duration_ms": 0, "job_id": 10545728190}, + {"duration_ms": 0, "job_id": 10545728356}, + ], + "jobs": 5, + "total_ms": 0, + } + }, + ) + self.assertEqual(timing.run_duration_ms, 241000) def test_rerun(self): - self.assertTrue(self.workflow_run.rerun()) + wr = self.repo.get_workflow_run(3910280793) + self.assertFalse(wr.rerun()) def test_rerun_with_successful_run(self): - wr = self.repo.get_workflow_run(145732882) + wr = self.repo.get_workflow_run(3881497935) self.assertFalse(wr.rerun()) def test_cancel(self): - self.assertTrue(self.workflow_run.cancel()) + wr = self.repo.get_workflow_run(3911660493) + self.assertFalse(wr.cancel()) def test_delete(self): - wr = self.repo.get_workflow_run(1327550476) - self.assertTrue(wr.delete()) + wr = self.repo.get_workflow_run(3881497935) + self.assertFalse(wr.delete())