{"action":"created","comment":{"url":"https://api.github.com/repos/rubykube/peatio/pulls/comments/241357674","pull_request_review_id":184605173,"id":241357674,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTM1NzY3NA==","diff_hunk":"@@ -5,6 +5,12 @@ class OrderAsk < Order\n   has_many :trades, -> { order(id: :asc) }, foreign_key: :ask_id\n   scope :matching_rule, -> { order(price: :asc, created_at: :asc) }\n \n+  validates :origin_volume,\n+            presence: true,\n+            numericality: { greater_than_or_equal_to: ->(order){ order.market.min_ask_amount }},\n+            if: ->(order){ order.market.min_ask_amount.present? }\n+\n+            ","path":"app/models/order_ask.rb","position":9,"original_position":9,"commit_id":"2a09a6a33236ac40aefad96acd6813d820929379","original_commit_id":"2a09a6a33236ac40aefad96acd6813d820929379","user":{"login":"ysv","id":19859122,"node_id":"MDQ6VXNlcjE5ODU5MTIy","avatar_url":"https://avatars1.githubusercontent.com/u/19859122?v=4","gravatar_id":"","url":"https://api.github.com/users/ysv","html_url":"https://github.com/ysv","followers_url":"https://api.github.com/users/ysv/followers","following_url":"https://api.github.com/users/ysv/following{/other_user}","gists_url":"https://api.github.com/users/ysv/gists{/gist_id}","starred_url":"https://api.github.com/users/ysv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysv/subscriptions","organizations_url":"https://api.github.com/users/ysv/orgs","repos_url":"https://api.github.com/users/ysv/repos","events_url":"https://api.github.com/users/ysv/events{/privacy}","received_events_url":"https://api.github.com/users/ysv/received_events","type":"User","site_admin":false},"body":"extra blank line","created_at":"2018-12-13T11:00:51Z","updated_at":"2018-12-13T11:01:03Z","html_url":"https://github.com/rubykube/peatio/pull/1762#discussion_r241357674","pull_request_url":"https://api.github.com/repos/rubykube/peatio/pulls/1762","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/comments/241357674"},"html":{"href":"https://github.com/rubykube/peatio/pull/1762#discussion_r241357674"},"pull_request":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/1762"}}},"pull_request":{"url":"https://api.github.com/repos/rubykube/peatio/pulls/1762","id":224214576,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MjE0NTc2","html_url":"https://github.com/rubykube/peatio/pull/1762","diff_url":"https://github.com/rubykube/peatio/pull/1762.diff","patch_url":"https://github.com/rubykube/peatio/pull/1762.patch","issue_url":"https://api.github.com/repos/rubykube/peatio/issues/1762","number":1762,"state":"open","locked":false,"title":"Add opportunity to define minimum amount for trade","user":{"login":"chumaknadya","id":22303734,"node_id":"MDQ6VXNlcjIyMzAzNzM0","avatar_url":"https://avatars2.githubusercontent.com/u/22303734?v=4","gravatar_id":"","url":"https://api.github.com/users/chumaknadya","html_url":"https://github.com/chumaknadya","followers_url":"https://api.github.com/users/chumaknadya/followers","following_url":"https://api.github.com/users/chumaknadya/following{/other_user}","gists_url":"https://api.github.com/users/chumaknadya/gists{/gist_id}","starred_url":"https://api.github.com/users/chumaknadya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chumaknadya/subscriptions","organizations_url":"https://api.github.com/users/chumaknadya/orgs","repos_url":"https://api.github.com/users/chumaknadya/repos","events_url":"https://api.github.com/users/chumaknadya/events{/privacy}","received_events_url":"https://api.github.com/users/chumaknadya/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-19T08:54:34Z","updated_at":"2018-12-13T11:01:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b42f5de660e69ca5ca1d42e3f0568f02f38b39c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":784954327,"node_id":"MDU6TGFiZWw3ODQ5NTQzMjc=","url":"https://api.github.com/repos/rubykube/peatio/labels/PR:%20Review","name":"PR: Review","color":"7743b7","default":false},{"id":904655713,"node_id":"MDU6TGFiZWw5MDQ2NTU3MTM=","url":"https://api.github.com/repos/rubykube/peatio/labels/v1.8","name":"v1.8","color":"3c69f2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rubykube/peatio/pulls/1762/commits","review_comments_url":"https://api.github.com/repos/rubykube/peatio/pulls/1762/comments","review_comment_url":"https://api.github.com/repos/rubykube/peatio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubykube/peatio/issues/1762/comments","statuses_url":"https://api.github.com/repos/rubykube/peatio/statuses/2a09a6a33236ac40aefad96acd6813d820929379","head":{"label":"chumaknadya:feature/min_amount_for_trade","ref":"feature/min_amount_for_trade","sha":"2a09a6a33236ac40aefad96acd6813d820929379","user":{"login":"chumaknadya","id":22303734,"node_id":"MDQ6VXNlcjIyMzAzNzM0","avatar_url":"https://avatars2.githubusercontent.com/u/22303734?v=4","gravatar_id":"","url":"https://api.github.com/users/chumaknadya","html_url":"https://github.com/chumaknadya","followers_url":"https://api.github.com/users/chumaknadya/followers","following_url":"https://api.github.com/users/chumaknadya/following{/other_user}","gists_url":"https://api.github.com/users/chumaknadya/gists{/gist_id}","starred_url":"https://api.github.com/users/chumaknadya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chumaknadya/subscriptions","organizations_url":"https://api.github.com/users/chumaknadya/orgs","repos_url":"https://api.github.com/users/chumaknadya/repos","events_url":"https://api.github.com/users/chumaknadya/events{/privacy}","received_events_url":"https://api.github.com/users/chumaknadya/received_events","type":"User","site_admin":false},"repo":{"id":147220565,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMjA1NjU=","name":"peatio","full_name":"chumaknadya/peatio","private":false,"owner":{"login":"chumaknadya","id":22303734,"node_id":"MDQ6VXNlcjIyMzAzNzM0","avatar_url":"https://avatars2.githubusercontent.com/u/22303734?v=4","gravatar_id":"","url":"https://api.github.com/users/chumaknadya","html_url":"https://github.com/chumaknadya","followers_url":"https://api.github.com/users/chumaknadya/followers","following_url":"https://api.github.com/users/chumaknadya/following{/other_user}","gists_url":"https://api.github.com/users/chumaknadya/gists{/gist_id}","starred_url":"https://api.github.com/users/chumaknadya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chumaknadya/subscriptions","organizations_url":"https://api.github.com/users/chumaknadya/orgs","repos_url":"https://api.github.com/users/chumaknadya/repos","events_url":"https://api.github.com/users/chumaknadya/events{/privacy}","received_events_url":"https://api.github.com/users/chumaknadya/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chumaknadya/peatio","description":"An open-source Crypto-Currency exchange.","fork":true,"url":"https://api.github.com/repos/chumaknadya/peatio","forks_url":"https://api.github.com/repos/chumaknadya/peatio/forks","keys_url":"https://api.github.com/repos/chumaknadya/peatio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chumaknadya/peatio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chumaknadya/peatio/teams","hooks_url":"https://api.github.com/repos/chumaknadya/peatio/hooks","issue_events_url":"https://api.github.com/repos/chumaknadya/peatio/issues/events{/number}","events_url":"https://api.github.com/repos/chumaknadya/peatio/events","assignees_url":"https://api.github.com/repos/chumaknadya/peatio/assignees{/user}","branches_url":"https://api.github.com/repos/chumaknadya/peatio/branches{/branch}","tags_url":"https://api.github.com/repos/chumaknadya/peatio/tags","blobs_url":"https://api.github.com/repos/chumaknadya/peatio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chumaknadya/peatio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chumaknadya/peatio/git/refs{/sha}","trees_url":"https://api.github.com/repos/chumaknadya/peatio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chumaknadya/peatio/statuses/{sha}","languages_url":"https://api.github.com/repos/chumaknadya/peatio/languages","stargazers_url":"https://api.github.com/repos/chumaknadya/peatio/stargazers","contributors_url":"https://api.github.com/repos/chumaknadya/peatio/contributors","subscribers_url":"https://api.github.com/repos/chumaknadya/peatio/subscribers","subscription_url":"https://api.github.com/repos/chumaknadya/peatio/subscription","commits_url":"https://api.github.com/repos/chumaknadya/peatio/commits{/sha}","git_commits_url":"https://api.github.com/repos/chumaknadya/peatio/git/commits{/sha}","comments_url":"https://api.github.com/repos/chumaknadya/peatio/comments{/number}","issue_comment_url":"https://api.github.com/repos/chumaknadya/peatio/issues/comments{/number}","contents_url":"https://api.github.com/repos/chumaknadya/peatio/contents/{+path}","compare_url":"https://api.github.com/repos/chumaknadya/peatio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chumaknadya/peatio/merges","archive_url":"https://api.github.com/repos/chumaknadya/peatio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chumaknadya/peatio/downloads","issues_url":"https://api.github.com/repos/chumaknadya/peatio/issues{/number}","pulls_url":"https://api.github.com/repos/chumaknadya/peatio/pulls{/number}","milestones_url":"https://api.github.com/repos/chumaknadya/peatio/milestones{/number}","notifications_url":"https://api.github.com/repos/chumaknadya/peatio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chumaknadya/peatio/labels{/name}","releases_url":"https://api.github.com/repos/chumaknadya/peatio/releases{/id}","deployments_url":"https://api.github.com/repos/chumaknadya/peatio/deployments","created_at":"2018-09-03T15:05:30Z","updated_at":"2018-09-03T15:05:34Z","pushed_at":"2018-12-12T15:33:52Z","git_url":"git://github.com/chumaknadya/peatio.git","ssh_url":"git@github.com:chumaknadya/peatio.git","clone_url":"https://github.com/chumaknadya/peatio.git","svn_url":"https://github.com/chumaknadya/peatio","homepage":"https://www.peatio.tech","size":9240,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubykube:1-8-stable","ref":"1-8-stable","sha":"80986f08665f0db4f4bbeef1f1667b87bac42527","user":{"login":"rubykube","id":29372474,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzcyNDc0","avatar_url":"https://avatars2.githubusercontent.com/u/29372474?v=4","gravatar_id":"","url":"https://api.github.com/users/rubykube","html_url":"https://github.com/rubykube","followers_url":"https://api.github.com/users/rubykube/followers","following_url":"https://api.github.com/users/rubykube/following{/other_user}","gists_url":"https://api.github.com/users/rubykube/gists{/gist_id}","starred_url":"https://api.github.com/users/rubykube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubykube/subscriptions","organizations_url":"https://api.github.com/users/rubykube/orgs","repos_url":"https://api.github.com/users/rubykube/repos","events_url":"https://api.github.com/users/rubykube/events{/privacy}","received_events_url":"https://api.github.com/users/rubykube/received_events","type":"Organization","site_admin":false},"repo":{"id":103532367,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM1MzIzNjc=","name":"peatio","full_name":"rubykube/peatio","private":false,"owner":{"login":"rubykube","id":29372474,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MzcyNDc0","avatar_url":"https://avatars2.githubusercontent.com/u/29372474?v=4","gravatar_id":"","url":"https://api.github.com/users/rubykube","html_url":"https://github.com/rubykube","followers_url":"https://api.github.com/users/rubykube/followers","following_url":"https://api.github.com/users/rubykube/following{/other_user}","gists_url":"https://api.github.com/users/rubykube/gists{/gist_id}","starred_url":"https://api.github.com/users/rubykube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubykube/subscriptions","organizations_url":"https://api.github.com/users/rubykube/orgs","repos_url":"https://api.github.com/users/rubykube/repos","events_url":"https://api.github.com/users/rubykube/events{/privacy}","received_events_url":"https://api.github.com/users/rubykube/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rubykube/peatio","description":"An open-source Crypto-Currency exchange.","fork":true,"url":"https://api.github.com/repos/rubykube/peatio","forks_url":"https://api.github.com/repos/rubykube/peatio/forks","keys_url":"https://api.github.com/repos/rubykube/peatio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubykube/peatio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubykube/peatio/teams","hooks_url":"https://api.github.com/repos/rubykube/peatio/hooks","issue_events_url":"https://api.github.com/repos/rubykube/peatio/issues/events{/number}","events_url":"https://api.github.com/repos/rubykube/peatio/events","assignees_url":"https://api.github.com/repos/rubykube/peatio/assignees{/user}","branches_url":"https://api.github.com/repos/rubykube/peatio/branches{/branch}","tags_url":"https://api.github.com/repos/rubykube/peatio/tags","blobs_url":"https://api.github.com/repos/rubykube/peatio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubykube/peatio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubykube/peatio/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubykube/peatio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubykube/peatio/statuses/{sha}","languages_url":"https://api.github.com/repos/rubykube/peatio/languages","stargazers_url":"https://api.github.com/repos/rubykube/peatio/stargazers","contributors_url":"https://api.github.com/repos/rubykube/peatio/contributors","subscribers_url":"https://api.github.com/repos/rubykube/peatio/subscribers","subscription_url":"https://api.github.com/repos/rubykube/peatio/subscription","commits_url":"https://api.github.com/repos/rubykube/peatio/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubykube/peatio/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubykube/peatio/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubykube/peatio/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubykube/peatio/contents/{+path}","compare_url":"https://api.github.com/repos/rubykube/peatio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubykube/peatio/merges","archive_url":"https://api.github.com/repos/rubykube/peatio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubykube/peatio/downloads","issues_url":"https://api.github.com/repos/rubykube/peatio/issues{/number}","pulls_url":"https://api.github.com/repos/rubykube/peatio/pulls{/number}","milestones_url":"https://api.github.com/repos/rubykube/peatio/milestones{/number}","notifications_url":"https://api.github.com/repos/rubykube/peatio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubykube/peatio/labels{/name}","releases_url":"https://api.github.com/repos/rubykube/peatio/releases{/id}","deployments_url":"https://api.github.com/repos/rubykube/peatio/deployments","created_at":"2017-09-14T12:57:42Z","updated_at":"2018-12-12T16:44:28Z","pushed_at":"2018-12-12T18:55:49Z","git_url":"git://github.com/rubykube/peatio.git","ssh_url":"git@github.com:rubykube/peatio.git","clone_url":"https://github.com/rubykube/peatio.git","svn_url":"https://github.com/rubykube/peatio","homepage":"https://www.peatio.tech","size":9036,"stargazers_count":441,"watchers_count":441,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":306,"mirror_url":null,"archived":false,"open_issues_count":85,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":306,"open_issues":85,"watchers":441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/1762"},"html":{"href":"https://github.com/rubykube/peatio/pull/1762"},"issue":{"href":"https://api.github.com/repos/rubykube/peatio/issues/1762"},"comments":{"href":"https://api.github.com/repos/rubykube/peatio/issues/1762/comments"},"review_comments":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/1762/comments"},"review_comment":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubykube/peatio/pulls/1762/commits"},"statuses":{"href":"https://api.github.com/repos/rubykube/peatio/statuses/2a09a6a33236ac40aefad96acd6813d820929379"}},"author_association":"NONE"}}
{"actor":{"display_login":"ysv"}}