{"action":"created","comment":{"url":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/comments/91874265","pull_request_review_id":12383154,"id":91874265,"diff_hunk":"@@ -154,11 +155,71 @@ func (slot *Slot) Update(version *types.Version) {\n }\n \n func (slot *Slot) TestOfferMatch(ow *OfferWrapper) bool {\n+\tif slot.Version.Constraints != nil && len(slot.Version.Constraints) > 0 {\n+\t\tconstraints := slot.filterConstraints(slot.Version.Constraints)\n+\t\tfor _, constraint := range constraints {\n+\t\t\tcons := strings.Split(constraint, \":\")\n+\t\t\tif cons[1] == \"LIKE\" {\n+\t\t\t\tfor _, attr := range ow.Attributes {","path":"src/manager/framework/state/slot.go","position":17,"original_position":17,"commit_id":"d71f31942f8282145340a484f17d76392f95d63f","original_commit_id":"d71f31942f8282145340a484f17d76392f95d63f","user":{"login":"pwzgorilla","id":15075940,"avatar_url":"https://avatars.githubusercontent.com/u/15075940?v=3","gravatar_id":"","url":"https://api.github.com/users/pwzgorilla","html_url":"https://github.com/pwzgorilla","followers_url":"https://api.github.com/users/pwzgorilla/followers","following_url":"https://api.github.com/users/pwzgorilla/following{/other_user}","gists_url":"https://api.github.com/users/pwzgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/pwzgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwzgorilla/subscriptions","organizations_url":"https://api.github.com/users/pwzgorilla/orgs","repos_url":"https://api.github.com/users/pwzgorilla/repos","events_url":"https://api.github.com/users/pwzgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/pwzgorilla/received_events","type":"User","site_admin":false},"body":"嗯，应该是这样，没注意到那个Offer字段。","created_at":"2016-12-12T02:04:02Z","updated_at":"2016-12-12T02:04:02Z","html_url":"https://github.com/Dataman-Cloud/swan/pull/94#discussion_r91874265","pull_request_url":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/comments/91874265"},"html":{"href":"https://github.com/Dataman-Cloud/swan/pull/94#discussion_r91874265"},"pull_request":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94","id":97418324,"html_url":"https://github.com/Dataman-Cloud/swan/pull/94","diff_url":"https://github.com/Dataman-Cloud/swan/pull/94.diff","patch_url":"https://github.com/Dataman-Cloud/swan/pull/94.patch","issue_url":"https://api.github.com/repos/Dataman-Cloud/swan/issues/94","number":94,"state":"open","locked":false,"title":"add `constraints` for new framework","user":{"login":"pwzgorilla","id":15075940,"avatar_url":"https://avatars.githubusercontent.com/u/15075940?v=3","gravatar_id":"","url":"https://api.github.com/users/pwzgorilla","html_url":"https://github.com/pwzgorilla","followers_url":"https://api.github.com/users/pwzgorilla/followers","following_url":"https://api.github.com/users/pwzgorilla/following{/other_user}","gists_url":"https://api.github.com/users/pwzgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/pwzgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwzgorilla/subscriptions","organizations_url":"https://api.github.com/users/pwzgorilla/orgs","repos_url":"https://api.github.com/users/pwzgorilla/repos","events_url":"https://api.github.com/users/pwzgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/pwzgorilla/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-10T08:45:30Z","updated_at":"2016-12-12T02:04:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c873c3bd47b686c55e99f10f0c2c3d342bdf2095","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94/commits","review_comments_url":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94/comments","review_comment_url":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dataman-Cloud/swan/issues/94/comments","statuses_url":"https://api.github.com/repos/Dataman-Cloud/swan/statuses/d71f31942f8282145340a484f17d76392f95d63f","head":{"label":"pwzgorilla:new","ref":"new","sha":"d71f31942f8282145340a484f17d76392f95d63f","user":{"login":"pwzgorilla","id":15075940,"avatar_url":"https://avatars.githubusercontent.com/u/15075940?v=3","gravatar_id":"","url":"https://api.github.com/users/pwzgorilla","html_url":"https://github.com/pwzgorilla","followers_url":"https://api.github.com/users/pwzgorilla/followers","following_url":"https://api.github.com/users/pwzgorilla/following{/other_user}","gists_url":"https://api.github.com/users/pwzgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/pwzgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwzgorilla/subscriptions","organizations_url":"https://api.github.com/users/pwzgorilla/orgs","repos_url":"https://api.github.com/users/pwzgorilla/repos","events_url":"https://api.github.com/users/pwzgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/pwzgorilla/received_events","type":"User","site_admin":false},"repo":{"id":73242711,"name":"swan","full_name":"pwzgorilla/swan","owner":{"login":"pwzgorilla","id":15075940,"avatar_url":"https://avatars.githubusercontent.com/u/15075940?v=3","gravatar_id":"","url":"https://api.github.com/users/pwzgorilla","html_url":"https://github.com/pwzgorilla","followers_url":"https://api.github.com/users/pwzgorilla/followers","following_url":"https://api.github.com/users/pwzgorilla/following{/other_user}","gists_url":"https://api.github.com/users/pwzgorilla/gists{/gist_id}","starred_url":"https://api.github.com/users/pwzgorilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwzgorilla/subscriptions","organizations_url":"https://api.github.com/users/pwzgorilla/orgs","repos_url":"https://api.github.com/users/pwzgorilla/repos","events_url":"https://api.github.com/users/pwzgorilla/events{/privacy}","received_events_url":"https://api.github.com/users/pwzgorilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwzgorilla/swan","description":"mesos scheduler","fork":true,"url":"https://api.github.com/repos/pwzgorilla/swan","forks_url":"https://api.github.com/repos/pwzgorilla/swan/forks","keys_url":"https://api.github.com/repos/pwzgorilla/swan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwzgorilla/swan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwzgorilla/swan/teams","hooks_url":"https://api.github.com/repos/pwzgorilla/swan/hooks","issue_events_url":"https://api.github.com/repos/pwzgorilla/swan/issues/events{/number}","events_url":"https://api.github.com/repos/pwzgorilla/swan/events","assignees_url":"https://api.github.com/repos/pwzgorilla/swan/assignees{/user}","branches_url":"https://api.github.com/repos/pwzgorilla/swan/branches{/branch}","tags_url":"https://api.github.com/repos/pwzgorilla/swan/tags","blobs_url":"https://api.github.com/repos/pwzgorilla/swan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwzgorilla/swan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwzgorilla/swan/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwzgorilla/swan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwzgorilla/swan/statuses/{sha}","languages_url":"https://api.github.com/repos/pwzgorilla/swan/languages","stargazers_url":"https://api.github.com/repos/pwzgorilla/swan/stargazers","contributors_url":"https://api.github.com/repos/pwzgorilla/swan/contributors","subscribers_url":"https://api.github.com/repos/pwzgorilla/swan/subscribers","subscription_url":"https://api.github.com/repos/pwzgorilla/swan/subscription","commits_url":"https://api.github.com/repos/pwzgorilla/swan/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwzgorilla/swan/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwzgorilla/swan/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwzgorilla/swan/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwzgorilla/swan/contents/{+path}","compare_url":"https://api.github.com/repos/pwzgorilla/swan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwzgorilla/swan/merges","archive_url":"https://api.github.com/repos/pwzgorilla/swan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwzgorilla/swan/downloads","issues_url":"https://api.github.com/repos/pwzgorilla/swan/issues{/number}","pulls_url":"https://api.github.com/repos/pwzgorilla/swan/pulls{/number}","milestones_url":"https://api.github.com/repos/pwzgorilla/swan/milestones{/number}","notifications_url":"https://api.github.com/repos/pwzgorilla/swan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwzgorilla/swan/labels{/name}","releases_url":"https://api.github.com/repos/pwzgorilla/swan/releases{/id}","deployments_url":"https://api.github.com/repos/pwzgorilla/swan/deployments","created_at":"2016-11-09T01:33:57Z","updated_at":"2016-11-09T01:33:58Z","pushed_at":"2016-12-10T08:43:53Z","git_url":"git://github.com/pwzgorilla/swan.git","ssh_url":"git@github.com:pwzgorilla/swan.git","clone_url":"https://github.com/pwzgorilla/swan.git","svn_url":"https://github.com/pwzgorilla/swan","homepage":null,"size":3555,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Dataman-Cloud:master","ref":"master","sha":"ea4b8b114757237b19951df4318b7c75302a898a","user":{"login":"Dataman-Cloud","id":10776998,"avatar_url":"https://avatars.githubusercontent.com/u/10776998?v=3","gravatar_id":"","url":"https://api.github.com/users/Dataman-Cloud","html_url":"https://github.com/Dataman-Cloud","followers_url":"https://api.github.com/users/Dataman-Cloud/followers","following_url":"https://api.github.com/users/Dataman-Cloud/following{/other_user}","gists_url":"https://api.github.com/users/Dataman-Cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/Dataman-Cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dataman-Cloud/subscriptions","organizations_url":"https://api.github.com/users/Dataman-Cloud/orgs","repos_url":"https://api.github.com/users/Dataman-Cloud/repos","events_url":"https://api.github.com/users/Dataman-Cloud/events{/privacy}","received_events_url":"https://api.github.com/users/Dataman-Cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":70329305,"name":"swan","full_name":"Dataman-Cloud/swan","owner":{"login":"Dataman-Cloud","id":10776998,"avatar_url":"https://avatars.githubusercontent.com/u/10776998?v=3","gravatar_id":"","url":"https://api.github.com/users/Dataman-Cloud","html_url":"https://github.com/Dataman-Cloud","followers_url":"https://api.github.com/users/Dataman-Cloud/followers","following_url":"https://api.github.com/users/Dataman-Cloud/following{/other_user}","gists_url":"https://api.github.com/users/Dataman-Cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/Dataman-Cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dataman-Cloud/subscriptions","organizations_url":"https://api.github.com/users/Dataman-Cloud/orgs","repos_url":"https://api.github.com/users/Dataman-Cloud/repos","events_url":"https://api.github.com/users/Dataman-Cloud/events{/privacy}","received_events_url":"https://api.github.com/users/Dataman-Cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Dataman-Cloud/swan","description":"mesos scheduler","fork":false,"url":"https://api.github.com/repos/Dataman-Cloud/swan","forks_url":"https://api.github.com/repos/Dataman-Cloud/swan/forks","keys_url":"https://api.github.com/repos/Dataman-Cloud/swan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dataman-Cloud/swan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dataman-Cloud/swan/teams","hooks_url":"https://api.github.com/repos/Dataman-Cloud/swan/hooks","issue_events_url":"https://api.github.com/repos/Dataman-Cloud/swan/issues/events{/number}","events_url":"https://api.github.com/repos/Dataman-Cloud/swan/events","assignees_url":"https://api.github.com/repos/Dataman-Cloud/swan/assignees{/user}","branches_url":"https://api.github.com/repos/Dataman-Cloud/swan/branches{/branch}","tags_url":"https://api.github.com/repos/Dataman-Cloud/swan/tags","blobs_url":"https://api.github.com/repos/Dataman-Cloud/swan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dataman-Cloud/swan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dataman-Cloud/swan/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dataman-Cloud/swan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dataman-Cloud/swan/statuses/{sha}","languages_url":"https://api.github.com/repos/Dataman-Cloud/swan/languages","stargazers_url":"https://api.github.com/repos/Dataman-Cloud/swan/stargazers","contributors_url":"https://api.github.com/repos/Dataman-Cloud/swan/contributors","subscribers_url":"https://api.github.com/repos/Dataman-Cloud/swan/subscribers","subscription_url":"https://api.github.com/repos/Dataman-Cloud/swan/subscription","commits_url":"https://api.github.com/repos/Dataman-Cloud/swan/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dataman-Cloud/swan/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dataman-Cloud/swan/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dataman-Cloud/swan/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dataman-Cloud/swan/contents/{+path}","compare_url":"https://api.github.com/repos/Dataman-Cloud/swan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dataman-Cloud/swan/merges","archive_url":"https://api.github.com/repos/Dataman-Cloud/swan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dataman-Cloud/swan/downloads","issues_url":"https://api.github.com/repos/Dataman-Cloud/swan/issues{/number}","pulls_url":"https://api.github.com/repos/Dataman-Cloud/swan/pulls{/number}","milestones_url":"https://api.github.com/repos/Dataman-Cloud/swan/milestones{/number}","notifications_url":"https://api.github.com/repos/Dataman-Cloud/swan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dataman-Cloud/swan/labels{/name}","releases_url":"https://api.github.com/repos/Dataman-Cloud/swan/releases{/id}","deployments_url":"https://api.github.com/repos/Dataman-Cloud/swan/deployments","created_at":"2016-10-08T12:21:07Z","updated_at":"2016-12-07T11:18:12Z","pushed_at":"2016-12-11T09:03:53Z","git_url":"git://github.com/Dataman-Cloud/swan.git","ssh_url":"git@github.com:Dataman-Cloud/swan.git","clone_url":"https://github.com/Dataman-Cloud/swan.git","svn_url":"https://github.com/Dataman-Cloud/swan","homepage":null,"size":3771,"stargazers_count":138,"watchers_count":138,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":6,"forks":25,"open_issues":6,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94"},"html":{"href":"https://github.com/Dataman-Cloud/swan/pull/94"},"issue":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/issues/94"},"comments":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/Dataman-Cloud/swan/statuses/d71f31942f8282145340a484f17d76392f95d63f"}}}}
{"actor":{"display_login":"pwzgorilla"}}