From e5b9084f055b4fd504591845132cd449d8a7ecac Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sat, 23 May 2020 09:55:19 +0200 Subject: [PATCH] relax PullRequestAction parsing Unknown events are fine here, as long as it's a valid event continue and consider it not interesting instead. Should alleviate fixes like #496 in the future. --- ofborg/src/ghevent/pullrequestevent.rs | 29 ++++++++++--------- .../events/pr-converted-to-draft.json | 1 + 2 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 ofborg/test-srcs/events/pr-converted-to-draft.json diff --git a/ofborg/src/ghevent/pullrequestevent.rs b/ofborg/src/ghevent/pullrequestevent.rs index 59a8d56..179f2d4 100644 --- a/ofborg/src/ghevent/pullrequestevent.rs +++ b/ofborg/src/ghevent/pullrequestevent.rs @@ -36,21 +36,12 @@ pub enum PullRequestState { #[derive(Serialize, Deserialize, Debug, PartialEq)] #[serde(rename_all = "snake_case")] pub enum PullRequestAction { - Assigned, - Unassigned, - ReviewRequested, - ReviewRequestRemoved, - Labeled, - Unlabeled, - Opened, Edited, - Closed, - ReadyForReview, - Locked, - Unlocked, + Opened, Reopened, Synchronize, - ConvertedToDraft, + #[serde(other)] + Unknown, } #[derive(Serialize, Deserialize, Debug)] @@ -73,10 +64,20 @@ mod tests { use serde_json; #[test] - fn test_parse_pr_event() { + fn test_parse_changed_base() { let data = include_str!("../../test-srcs/events/pr-changed-base.json"); - let _p: PullRequestEvent = + let pr: PullRequestEvent = serde_json::from_str(&data.to_string()).expect("Should properly deserialize"); + assert_eq!(pr.action, PullRequestAction::Edited); + } + + #[test] + fn test_parse_unknown_action() { + let data = include_str!("../../test-srcs/events/pr-converted-to-draft.json"); + + let pr: PullRequestEvent = + serde_json::from_str(&data.to_string()).expect("Should properly deserialize"); + assert_eq!(pr.action, PullRequestAction::Unknown); } } diff --git a/ofborg/test-srcs/events/pr-converted-to-draft.json b/ofborg/test-srcs/events/pr-converted-to-draft.json new file mode 100644 index 0000000..3062df1 --- /dev/null +++ b/ofborg/test-srcs/events/pr-converted-to-draft.json @@ -0,0 +1 @@ +{"action":"converted_to_draft","number":86486,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/86486","id":412206513,"node_id":"MDExOlB1bGxSZXF1ZXN0NDEyMjA2NTEz","html_url":"https://github.com/NixOS/nixpkgs/pull/86486","diff_url":"https://github.com/NixOS/nixpkgs/pull/86486.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/86486.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/86486","number":86486,"state":"open","locked":false,"title":"nixosTests: re-enable networking tests","user":{"login":"flokli","id":183879,"node_id":"MDQ6VXNlcjE4Mzg3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/183879?v=4","gravatar_id":"","url":"https://api.github.com/users/flokli","html_url":"https://github.com/flokli","followers_url":"https://api.github.com/users/flokli/followers","following_url":"https://api.github.com/users/flokli/following{/other_user}","gists_url":"https://api.github.com/users/flokli/gists{/gist_id}","starred_url":"https://api.github.com/users/flokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flokli/subscriptions","organizations_url":"https://api.github.com/users/flokli/orgs","repos_url":"https://api.github.com/users/flokli/repos","events_url":"https://api.github.com/users/flokli/events{/privacy}","received_events_url":"https://api.github.com/users/flokli/received_events","type":"User","site_admin":false},"body":"5150378c2f10d34a7ba4404c52f6c882284dd254 fixed the long-brokenrnnixosTests.networking.virtual.rnrnWith all tests failures fixed, and #79328 making debugging much easier,rnlet's re-add it to the tested jobset.rn###### Motivation for this changernrnrn###### Things donernrnrnrn- [x] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS linux)rn- Built on platform(s)rn - [x] NixOSrn - [ ] macOSrn - [ ] other Linux distributionsrn- [x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))rn- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nixpkgs-review --run \"nixpkgs-review wip\"`rn- [ ] Tested execution of all binary files (usually in `./result/bin/`)rn- [ ] Determined the impact on package closure size (by running `nix path-info -S` before and after)rn- [ ] Ensured that relevant documentation is up to datern- [ ] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).rn","created_at":"2020-05-01T16:47:11Z","updated_at":"2020-05-22T19:22:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56a65abb75c71a06709716f8895786cd65b27caf","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tfc","id":29044,"node_id":"MDQ6VXNlcjI5MDQ0","avatar_url":"https://avatars1.githubusercontent.com/u/29044?v=4","gravatar_id":"","url":"https://api.github.com/users/tfc","html_url":"https://github.com/tfc","followers_url":"https://api.github.com/users/tfc/followers","following_url":"https://api.github.com/users/tfc/following{/other_user}","gists_url":"https://api.github.com/users/tfc/gists{/gist_id}","starred_url":"https://api.github.com/users/tfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfc/subscriptions","organizations_url":"https://api.github.com/users/tfc/orgs","repos_url":"https://api.github.com/users/tfc/repos","events_url":"https://api.github.com/users/tfc/events{/privacy}","received_events_url":"https://api.github.com/users/tfc/received_events","type":"User","site_admin":false},{"login":"nh2","id":399535,"node_id":"MDQ6VXNlcjM5OTUzNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/399535?v=4","gravatar_id":"","url":"https://api.github.com/users/nh2","html_url":"https://github.com/nh2","followers_url":"https://api.github.com/users/nh2/followers","following_url":"https://api.github.com/users/nh2/following{/other_user}","gists_url":"https://api.github.com/users/nh2/gists{/gist_id}","starred_url":"https://api.github.com/users/nh2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nh2/subscriptions","organizations_url":"https://api.github.com/users/nh2/orgs","repos_url":"https://api.github.com/users/nh2/repos","events_url":"https://api.github.com/users/nh2/events{/privacy}","received_events_url":"https://api.github.com/users/nh2/received_events","type":"User","site_admin":false},{"login":"andir","id":638836,"node_id":"MDQ6VXNlcjYzODgzNg==","avatar_url":"https://avatars1.githubusercontent.com/u/638836?v=4","gravatar_id":"","url":"https://api.github.com/users/andir","html_url":"https://github.com/andir","followers_url":"https://api.github.com/users/andir/followers","following_url":"https://api.github.com/users/andir/following{/other_user}","gists_url":"https://api.github.com/users/andir/gists{/gist_id}","starred_url":"https://api.github.com/users/andir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andir/subscriptions","organizations_url":"https://api.github.com/users/andir/orgs","repos_url":"https://api.github.com/users/andir/repos","events_url":"https://api.github.com/users/andir/events{/privacy}","received_events_url":"https://api.github.com/users/andir/received_events","type":"User","site_admin":false},{"login":"NinjaTrappeur","id":1219785,"node_id":"MDQ6VXNlcjEyMTk3ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/1219785?v=4","gravatar_id":"","url":"https://api.github.com/users/NinjaTrappeur","html_url":"https://github.com/NinjaTrappeur","followers_url":"https://api.github.com/users/NinjaTrappeur/followers","following_url":"https://api.github.com/users/NinjaTrappeur/following{/other_user}","gists_url":"https://api.github.com/users/NinjaTrappeur/gists{/gist_id}","starred_url":"https://api.github.com/users/NinjaTrappeur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NinjaTrappeur/subscriptions","organizations_url":"https://api.github.com/users/NinjaTrappeur/orgs","repos_url":"https://api.github.com/users/NinjaTrappeur/repos","events_url":"https://api.github.com/users/NinjaTrappeur/events{/privacy}","received_events_url":"https://api.github.com/users/NinjaTrappeur/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":737642262,"node_id":"MDU6TGFiZWw3Mzc2NDIyNjI=","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-darwin:%200","name":"10.rebuild-darwin: 0","color":"eeffee","default":false,"description":null},{"id":1955058054,"node_id":"MDU6TGFiZWwxOTU1MDU4MDU0","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-linux:%201","name":"10.rebuild-linux: 1","color":"ededed","default":false,"description":null},{"id":731733923,"node_id":"MDU6TGFiZWw3MzE3MzM5MjM=","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/10.rebuild-linux:%201-10","name":"10.rebuild-linux: 1-10","color":"eeffee","default":false,"description":null},{"id":60265212,"node_id":"MDU6TGFiZWw2MDI2NTIxMg==","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20nixos","name":"6.topic: nixos","color":"fef2c0","default":false,"description":null}],"milestone":null,"draft":true,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/86486/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/86486/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/86486/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/897d574ae2447e120d5889342e2417f29d5ae81c","head":{"label":"flokli:networking-tests-add","ref":"networking-tests-add","sha":"897d574ae2447e120d5889342e2417f29d5ae81c","user":{"login":"flokli","id":183879,"node_id":"MDQ6VXNlcjE4Mzg3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/183879?v=4","gravatar_id":"","url":"https://api.github.com/users/flokli","html_url":"https://github.com/flokli","followers_url":"https://api.github.com/users/flokli/followers","following_url":"https://api.github.com/users/flokli/following{/other_user}","gists_url":"https://api.github.com/users/flokli/gists{/gist_id}","starred_url":"https://api.github.com/users/flokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flokli/subscriptions","organizations_url":"https://api.github.com/users/flokli/orgs","repos_url":"https://api.github.com/users/flokli/repos","events_url":"https://api.github.com/users/flokli/events{/privacy}","received_events_url":"https://api.github.com/users/flokli/received_events","type":"User","site_admin":false},"repo":{"id":106616131,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY2MTYxMzE=","name":"nixpkgs","full_name":"flokli/nixpkgs","private":false,"owner":{"login":"flokli","id":183879,"node_id":"MDQ6VXNlcjE4Mzg3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/183879?v=4","gravatar_id":"","url":"https://api.github.com/users/flokli","html_url":"https://github.com/flokli","followers_url":"https://api.github.com/users/flokli/followers","following_url":"https://api.github.com/users/flokli/following{/other_user}","gists_url":"https://api.github.com/users/flokli/gists{/gist_id}","starred_url":"https://api.github.com/users/flokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flokli/subscriptions","organizations_url":"https://api.github.com/users/flokli/orgs","repos_url":"https://api.github.com/users/flokli/repos","events_url":"https://api.github.com/users/flokli/events{/privacy}","received_events_url":"https://api.github.com/users/flokli/received_events","type":"User","site_admin":false},"html_url":"https://github.com/flokli/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/flokli/nixpkgs","forks_url":"https://api.github.com/repos/flokli/nixpkgs/forks","keys_url":"https://api.github.com/repos/flokli/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flokli/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flokli/nixpkgs/teams","hooks_url":"https://api.github.com/repos/flokli/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/flokli/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/flokli/nixpkgs/events","assignees_url":"https://api.github.com/repos/flokli/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/flokli/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/flokli/nixpkgs/tags","blobs_url":"https://api.github.com/repos/flokli/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flokli/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flokli/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/flokli/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flokli/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/flokli/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/flokli/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/flokli/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/flokli/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/flokli/nixpkgs/subscription","commits_url":"https://api.github.com/repos/flokli/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/flokli/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/flokli/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/flokli/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/flokli/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/flokli/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flokli/nixpkgs/merges","archive_url":"https://api.github.com/repos/flokli/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flokli/nixpkgs/downloads","issues_url":"https://api.github.com/repos/flokli/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/flokli/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/flokli/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/flokli/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flokli/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/flokli/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/flokli/nixpkgs/deployments","created_at":"2017-10-11T22:29:54Z","updated_at":"2017-10-11T22:30:23Z","pushed_at":"2020-05-22T15:10:56Z","git_url":"git://github.com/flokli/nixpkgs.git","ssh_url":"git@github.com:flokli/nixpkgs.git","clone_url":"https://github.com/flokli/nixpkgs.git","svn_url":"https://github.com/flokli/nixpkgs","homepage":null,"size":1106455,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"af66d338269a88604e93700aead604d0bbcc6414","user":{"login":"NixOS","id":487568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NzU2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/487568?v=4","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"repo":{"id":4542716,"node_id":"MDEwOlJlcG9zaXRvcnk0NTQyNzE2","name":"nixpkgs","full_name":"NixOS/nixpkgs","private":false,"owner":{"login":"NixOS","id":487568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NzU2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/487568?v=4","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/NixOS/nixpkgs","description":"Nix Packages collection","fork":false,"url":"https://api.github.com/repos/NixOS/nixpkgs","forks_url":"https://api.github.com/repos/NixOS/nixpkgs/forks","keys_url":"https://api.github.com/repos/NixOS/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nixpkgs/teams","hooks_url":"https://api.github.com/repos/NixOS/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nixpkgs/events","assignees_url":"https://api.github.com/repos/NixOS/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nixpkgs/tags","blobs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/NixOS/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nixpkgs/subscription","commits_url":"https://api.github.com/repos/NixOS/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nixpkgs/merges","archive_url":"https://api.github.com/repos/NixOS/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nixpkgs/downloads","issues_url":"https://api.github.com/repos/NixOS/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/NixOS/nixpkgs/deployments","created_at":"2012-06-04T02:49:46Z","updated_at":"2020-05-22T18:55:26Z","pushed_at":"2020-05-22T19:15:16Z","git_url":"git://github.com/NixOS/nixpkgs.git","ssh_url":"git@github.com:NixOS/nixpkgs.git","clone_url":"https://github.com/NixOS/nixpkgs.git","svn_url":"https://github.com/NixOS/nixpkgs","homepage":null,"size":1172580,"stargazers_count":5013,"watchers_count":5013,"language":"Nix","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4811,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6161,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4811,"open_issues":6161,"watchers":5013,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/86486"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/86486"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/86486"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/86486/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/86486/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/86486/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/897d574ae2447e120d5889342e2417f29d5ae81c"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"draft","merged_by":null,"comments":8,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":17,"deletions":18,"changed_files":2},"repository":{"id":4542716,"node_id":"MDEwOlJlcG9zaXRvcnk0NTQyNzE2","name":"nixpkgs","full_name":"NixOS/nixpkgs","private":false,"owner":{"login":"NixOS","id":487568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NzU2OA==","avatar_url":"https://avatars3.githubusercontent.com/u/487568?v=4","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/NixOS/nixpkgs","description":"Nix Packages collection","fork":false,"url":"https://api.github.com/repos/NixOS/nixpkgs","forks_url":"https://api.github.com/repos/NixOS/nixpkgs/forks","keys_url":"https://api.github.com/repos/NixOS/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nixpkgs/teams","hooks_url":"https://api.github.com/repos/NixOS/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nixpkgs/events","assignees_url":"https://api.github.com/repos/NixOS/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nixpkgs/tags","blobs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/NixOS/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nixpkgs/subscription","commits_url":"https://api.github.com/repos/NixOS/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nixpkgs/merges","archive_url":"https://api.github.com/repos/NixOS/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nixpkgs/downloads","issues_url":"https://api.github.com/repos/NixOS/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/NixOS/nixpkgs/deployments","created_at":"2012-06-04T02:49:46Z","updated_at":"2020-05-22T18:55:26Z","pushed_at":"2020-05-22T19:15:16Z","git_url":"git://github.com/NixOS/nixpkgs.git","ssh_url":"git@github.com:NixOS/nixpkgs.git","clone_url":"https://github.com/NixOS/nixpkgs.git","svn_url":"https://github.com/NixOS/nixpkgs","homepage":null,"size":1172580,"stargazers_count":5013,"watchers_count":5013,"language":"Nix","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4811,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6161,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4811,"open_issues":6161,"watchers":5013,"default_branch":"master"},"organization":{"login":"NixOS","id":487568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ4NzU2OA==","url":"https://api.github.com/orgs/NixOS","repos_url":"https://api.github.com/orgs/NixOS/repos","events_url":"https://api.github.com/orgs/NixOS/events","hooks_url":"https://api.github.com/orgs/NixOS/hooks","issues_url":"https://api.github.com/orgs/NixOS/issues","members_url":"https://api.github.com/orgs/NixOS/members{/member}","public_members_url":"https://api.github.com/orgs/NixOS/public_members{/member}","avatar_url":"https://avatars3.githubusercontent.com/u/487568?v=4","description":""},"sender":{"login":"flokli","id":183879,"node_id":"MDQ6VXNlcjE4Mzg3OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/183879?v=4","gravatar_id":"","url":"https://api.github.com/users/flokli","html_url":"https://github.com/flokli","followers_url":"https://api.github.com/users/flokli/followers","following_url":"https://api.github.com/users/flokli/following{/other_user}","gists_url":"https://api.github.com/users/flokli/gists{/gist_id}","starred_url":"https://api.github.com/users/flokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flokli/subscriptions","organizations_url":"https://api.github.com/users/flokli/orgs","repos_url":"https://api.github.com/users/flokli/repos","events_url":"https://api.github.com/users/flokli/events{/privacy}","received_events_url":"https://api.github.com/users/flokli/received_events","type":"User","site_admin":false}}