mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
* Add initial support for Check Suites * Add API call detail in CheckSuite.rerequest * Update Accept header with general instead of preview * Add 'get check runs' endpoint for CheckSuite with stubs * Add create check suite endpoint with stub * Update CheckSuite tests with creat check suite endpoint * Add update check suites preferences endpoint * Add repository preferences object and stub file * Add update check suite preferences tests Needed for #1621 Co-authored-by: Raju Subramanian <coder@mahesh.net>
23 lines
12 KiB
Plaintext
23 lines
12 KiB
Plaintext
https
|
|
GET
|
|
api.github.com
|
|
None
|
|
/repos/wrecker/PySample/check-suites/1004503395
|
|
{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
None
|
|
200
|
|
[('Date', 'Sun, 09 Aug 2020 07:47:34 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Transfer-Encoding', 'chunked'), ('Server', 'GitHub.com'), ('Status', '200 OK'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4996'), ('X-RateLimit-Reset', '1596962853'), ('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/"ac254b8039de356c97a4172e81b67d57"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; 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', '8178:9A1D:23CDF:3BF94:5F2FAA15')]
|
|
{"id":1004503395,"node_id":"MDEwOkNoZWNrU3VpdGUxMDA0NTAzMzk1","head_branch":"wrecker-patch-1","head_sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","status":"completed","conclusion":"success","url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395","before":"9ee0caba8648aa0b8b5fc68ebc37c3c1162aa283","after":"fd09d934bcce792176d6b79d6d0387e938b62b7a","pull_requests":[{"url":"https://api.github.com/repos/wrecker/PySample/pulls/7","id":462527907,"number":7,"head":{"ref":"wrecker-patch-1","sha":"fd09d934bcce792176d6b79d6d0387e938b62b7a","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}},"base":{"ref":"main","sha":"ad83eb83895dafacb1384f89e3be6a9d9cf2b719","repo":{"id":283963162,"url":"https://api.github.com/repos/wrecker/PySample","name":"PySample"}}}],"app":{"id":19534,"slug":"prosebot","node_id":"MDM6QXBwMTk1MzQ=","owner":{"login":"JasonEtco","id":10660468,"node_id":"MDQ6VXNlcjEwNjYwNDY4","avatar_url":"https://avatars1.githubusercontent.com/u/10660468?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonEtco","html_url":"https://github.com/JasonEtco","followers_url":"https://api.github.com/users/JasonEtco/followers","following_url":"https://api.github.com/users/JasonEtco/following{/other_user}","gists_url":"https://api.github.com/users/JasonEtco/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonEtco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonEtco/subscriptions","organizations_url":"https://api.github.com/users/JasonEtco/orgs","repos_url":"https://api.github.com/users/JasonEtco/repos","events_url":"https://api.github.com/users/JasonEtco/events{/privacy}","received_events_url":"https://api.github.com/users/JasonEtco/received_events","type":"User","site_admin":true},"name":"prosebot","description":"<a href=\"https://probot.github.io\">Probot App</a> to help you write better on GitHub.\r\n\r\n## Usage\r\n\r\nThis Probot App listens for changes to Markdown files (`.md`) or text files (`.txt`) and runs various checks against them to provide feedback on the English. Currently, the app checks for spelling, prose and inclusive verbiage. This is done by leveraging existing open source libraries, which you can find [listed below](#credits). Here's how it looks in action:\r\n\r\n<p align=\"center\">\r\n <img width=\"697\" alt=\"image\" src=\"https://user-images.githubusercontent.com/10660468/47381659-87844600-d6ce-11e8-8dc1-add68671dc85.png\">\r\n</p>\r\n\r\n### What it checks\r\n\r\nA non-exhaustive list of the various checks that are run:\r\n\r\n* Correct spelling (and provides possible corrections).\r\n* Use of non-inclusive/profane/offensive language.\r\n* Various prose-related checks, find the full list [here](https://github.com/btford/write-good#checks).\r\n\r\n### Installation\r\n\r\nVisit [the installation page](https://github.com/apps/prosebot) and install the GitHub App on your repositories. That's all there is to it ❤️\r\n\r\n### Configuration\r\n\r\nThere are currently three providers that the app uses to test your text. These can each be disabled, and are all enabled by default. To disable a provider, add a `.github/write-good.yml` file to your repository and set the provider to `false`:\r\n\r\n```yaml\r\n# .github/write-good.yml\r\nwriteGood: true\r\nalex: true\r\nspellchecker: true\r\n```\r\n\r\n### Credits\r\n\r\nThis Probot App is mostly a wrapper around existing open source libraries. The majority of the work is done by those, and they deserve a ton of thanks:\r\n\r\n* [`write-good`](https://github.com/btford/write-good)\r\n* [`alex`](https://github.com/get-alex/alex)\r\n* [`node-spellchecker`](https://github.com/atom/node-spellchecker)\r\n\r\n### Future work\r\n\r\n* Using [Suggested Changes](https://blog.github.com/changelog/2018-10-16-suggested-changes/) to... suggest changes.\r\n* Work on multiple PRs at a time\r\n* Nicer annotations\r\n* More providers? [Open an issue!](https://github.com/JasonEtco/prosebot/issues/new)\r\n","external_url":"https://github.com/JasonEtco/prosebot","html_url":"https://github.com/apps/prosebot","created_at":"2018-10-22T20:28:41Z","updated_at":"2018-10-23T18:40:32Z","permissions":{"checks":"write","contents":"read","pull_requests":"write"},"events":["check_run","check_suite","pull_request"]},"created_at":"2020-08-04T05:06:51Z","updated_at":"2020-08-04T05:06:55Z","latest_check_runs_count":3,"check_runs_url":"https://api.github.com/repos/wrecker/PySample/check-suites/1004503395/check-runs","head_commit":{"id":"fd09d934bcce792176d6b79d6d0387e938b62b7a","tree_id":"ece026d8b3d79448ead6e7a2e2919dea8057db38","message":"Update README.md","timestamp":"2020-08-04T05:06:50Z","author":{"name":"Mahesh Raju","email":"coder@mahesh.net"},"committer":{"name":"GitHub","email":"noreply@github.com"}},"repository":{"id":283963162,"node_id":"MDEwOlJlcG9zaXRvcnkyODM5NjMxNjI=","name":"PySample","full_name":"wrecker/PySample","private":false,"owner":{"login":"wrecker","id":4432114,"node_id":"MDQ6VXNlcjQ0MzIxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4432114?v=4","gravatar_id":"","url":"https://api.github.com/users/wrecker","html_url":"https://github.com/wrecker","followers_url":"https://api.github.com/users/wrecker/followers","following_url":"https://api.github.com/users/wrecker/following{/other_user}","gists_url":"https://api.github.com/users/wrecker/gists{/gist_id}","starred_url":"https://api.github.com/users/wrecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrecker/subscriptions","organizations_url":"https://api.github.com/users/wrecker/orgs","repos_url":"https://api.github.com/users/wrecker/repos","events_url":"https://api.github.com/users/wrecker/events{/privacy}","received_events_url":"https://api.github.com/users/wrecker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/wrecker/PySample","description":"A Sample Python Project","fork":false,"url":"https://api.github.com/repos/wrecker/PySample","forks_url":"https://api.github.com/repos/wrecker/PySample/forks","keys_url":"https://api.github.com/repos/wrecker/PySample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrecker/PySample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrecker/PySample/teams","hooks_url":"https://api.github.com/repos/wrecker/PySample/hooks","issue_events_url":"https://api.github.com/repos/wrecker/PySample/issues/events{/number}","events_url":"https://api.github.com/repos/wrecker/PySample/events","assignees_url":"https://api.github.com/repos/wrecker/PySample/assignees{/user}","branches_url":"https://api.github.com/repos/wrecker/PySample/branches{/branch}","tags_url":"https://api.github.com/repos/wrecker/PySample/tags","blobs_url":"https://api.github.com/repos/wrecker/PySample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrecker/PySample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrecker/PySample/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrecker/PySample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrecker/PySample/statuses/{sha}","languages_url":"https://api.github.com/repos/wrecker/PySample/languages","stargazers_url":"https://api.github.com/repos/wrecker/PySample/stargazers","contributors_url":"https://api.github.com/repos/wrecker/PySample/contributors","subscribers_url":"https://api.github.com/repos/wrecker/PySample/subscribers","subscription_url":"https://api.github.com/repos/wrecker/PySample/subscription","commits_url":"https://api.github.com/repos/wrecker/PySample/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrecker/PySample/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrecker/PySample/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrecker/PySample/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrecker/PySample/contents/{+path}","compare_url":"https://api.github.com/repos/wrecker/PySample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrecker/PySample/merges","archive_url":"https://api.github.com/repos/wrecker/PySample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrecker/PySample/downloads","issues_url":"https://api.github.com/repos/wrecker/PySample/issues{/number}","pulls_url":"https://api.github.com/repos/wrecker/PySample/pulls{/number}","milestones_url":"https://api.github.com/repos/wrecker/PySample/milestones{/number}","notifications_url":"https://api.github.com/repos/wrecker/PySample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrecker/PySample/labels{/name}","releases_url":"https://api.github.com/repos/wrecker/PySample/releases{/id}","deployments_url":"https://api.github.com/repos/wrecker/PySample/deployments"}}
|
|
|
|
https
|
|
POST
|
|
api.github.com
|
|
None
|
|
/repos/wrecker/PySample/check-suites/1004503395/rerequest
|
|
{'Accept': 'application/vnd.github.v3+json', 'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
None
|
|
201
|
|
[('Date', 'Sun, 09 Aug 2020 07:47:34 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Content-Length', '2'), ('Server', 'GitHub.com'), ('Status', '201 Created'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4995'), ('X-RateLimit-Reset', '1596962853'), ('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', '"7aedf6d551d7c9a51ab427aecc33124a"'), ('X-OAuth-Scopes', 'repo, workflow'), ('X-Accepted-OAuth-Scopes', ''), ('X-GitHub-Media-Type', 'github.antiope-preview; 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', '817A:5947:6EF121:83E68E:5F2FAA16')]
|
|
{}
|
|
|