{"action":"opened","number":523,"pull_request":{"url":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/523","id":205565603,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NTY1NjAz","html_url":"https://github.com/mrbigmouth/acgn-stock/pull/523","diff_url":"https://github.com/mrbigmouth/acgn-stock/pull/523.diff","patch_url":"https://github.com/mrbigmouth/acgn-stock/pull/523.patch","issue_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/issues/523","number":523,"state":"open","locked":false,"title":" 調整產品回饋金","user":{"login":"SoftwareSing","id":36272700,"node_id":"MDQ6VXNlcjM2MjcyNzAw","avatar_url":"https://avatars0.githubusercontent.com/u/36272700?v=4","gravatar_id":"","url":"https://api.github.com/users/SoftwareSing","html_url":"https://github.com/SoftwareSing","followers_url":"https://api.github.com/users/SoftwareSing/followers","following_url":"https://api.github.com/users/SoftwareSing/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareSing/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareSing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareSing/subscriptions","organizations_url":"https://api.github.com/users/SoftwareSing/orgs","repos_url":"https://api.github.com/users/SoftwareSing/repos","events_url":"https://api.github.com/users/SoftwareSing/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareSing/received_events","type":"User","site_admin":false},"body":"依照 https://acgn-stock.com/announcement/view/azdynR9a2CYKTx6xZ 之規劃\r\n調整產品回饋金\r\n\r\n1. 重構 `deliverProductRebates()` ，將查找 `rebateList` 的部分移出，並將計算 `rebate` 的部分獨立成 `computeRebate()`\r\n\r\n2. 建立 `deliverProductRebates()` 的整合測試\r\n\r\n3. 增加 `seasonFactory` 與 `userOwnedProductFactory`\r\n\r\n4. `config`中的 `productRebates` 刪除 `deliverAmount` ，新增 `initialDeliverPercent`, `minDeliverPercent` ，並將 `divisorAmount` 值改為 2000","created_at":"2018-08-01T21:59:54Z","updated_at":"2018-08-01T21:59:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/523/commits","review_comments_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/523/comments","review_comment_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/issues/523/comments","statuses_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/statuses/94569d2571bd8bb71d9f1d990433da817545c5be","head":{"label":"SoftwareSing:modify-product-rebates","ref":"modify-product-rebates","sha":"94569d2571bd8bb71d9f1d990433da817545c5be","user":{"login":"SoftwareSing","id":36272700,"node_id":"MDQ6VXNlcjM2MjcyNzAw","avatar_url":"https://avatars0.githubusercontent.com/u/36272700?v=4","gravatar_id":"","url":"https://api.github.com/users/SoftwareSing","html_url":"https://github.com/SoftwareSing","followers_url":"https://api.github.com/users/SoftwareSing/followers","following_url":"https://api.github.com/users/SoftwareSing/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareSing/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareSing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareSing/subscriptions","organizations_url":"https://api.github.com/users/SoftwareSing/orgs","repos_url":"https://api.github.com/users/SoftwareSing/repos","events_url":"https://api.github.com/users/SoftwareSing/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareSing/received_events","type":"User","site_admin":false},"repo":{"id":133197159,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMxOTcxNTk=","name":"acgn-stock","full_name":"SoftwareSing/acgn-stock","owner":{"login":"SoftwareSing","id":36272700,"node_id":"MDQ6VXNlcjM2MjcyNzAw","avatar_url":"https://avatars0.githubusercontent.com/u/36272700?v=4","gravatar_id":"","url":"https://api.github.com/users/SoftwareSing","html_url":"https://github.com/SoftwareSing","followers_url":"https://api.github.com/users/SoftwareSing/followers","following_url":"https://api.github.com/users/SoftwareSing/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareSing/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareSing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareSing/subscriptions","organizations_url":"https://api.github.com/users/SoftwareSing/orgs","repos_url":"https://api.github.com/users/SoftwareSing/repos","events_url":"https://api.github.com/users/SoftwareSing/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareSing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SoftwareSing/acgn-stock","description":"PTT ACGN股票交易市場","fork":true,"url":"https://api.github.com/repos/SoftwareSing/acgn-stock","forks_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/forks","keys_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/teams","hooks_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/hooks","issue_events_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/issues/events{/number}","events_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/events","assignees_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/assignees{/user}","branches_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/branches{/branch}","tags_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/tags","blobs_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/git/refs{/sha}","trees_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/statuses/{sha}","languages_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/languages","stargazers_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/stargazers","contributors_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/contributors","subscribers_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/subscribers","subscription_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/subscription","commits_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/commits{/sha}","git_commits_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/git/commits{/sha}","comments_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/comments{/number}","issue_comment_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/issues/comments{/number}","contents_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/contents/{+path}","compare_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/merges","archive_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/downloads","issues_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/issues{/number}","pulls_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/pulls{/number}","milestones_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/milestones{/number}","notifications_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/labels{/name}","releases_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/releases{/id}","deployments_url":"https://api.github.com/repos/SoftwareSing/acgn-stock/deployments","created_at":"2018-05-13T01:46:16Z","updated_at":"2018-07-22T10:07:46Z","pushed_at":"2018-08-01T21:33:07Z","git_url":"git://github.com/SoftwareSing/acgn-stock.git","ssh_url":"git@github.com:SoftwareSing/acgn-stock.git","clone_url":"https://github.com/SoftwareSing/acgn-stock.git","svn_url":"https://github.com/SoftwareSing/acgn-stock","homepage":null,"size":3368,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mrbigmouth:dev","ref":"dev","sha":"3556b4ac3d1058b629fb4b95ae2bc0a51e3f469f","user":{"login":"mrbigmouth","id":4755204,"node_id":"MDQ6VXNlcjQ3NTUyMDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4755204?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbigmouth","html_url":"https://github.com/mrbigmouth","followers_url":"https://api.github.com/users/mrbigmouth/followers","following_url":"https://api.github.com/users/mrbigmouth/following{/other_user}","gists_url":"https://api.github.com/users/mrbigmouth/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbigmouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbigmouth/subscriptions","organizations_url":"https://api.github.com/users/mrbigmouth/orgs","repos_url":"https://api.github.com/users/mrbigmouth/repos","events_url":"https://api.github.com/users/mrbigmouth/events{/privacy}","received_events_url":"https://api.github.com/users/mrbigmouth/received_events","type":"User","site_admin":false},"repo":{"id":97927043,"node_id":"MDEwOlJlcG9zaXRvcnk5NzkyNzA0Mw==","name":"acgn-stock","full_name":"mrbigmouth/acgn-stock","owner":{"login":"mrbigmouth","id":4755204,"node_id":"MDQ6VXNlcjQ3NTUyMDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4755204?v=4","gravatar_id":"","url":"https://api.github.com/users/mrbigmouth","html_url":"https://github.com/mrbigmouth","followers_url":"https://api.github.com/users/mrbigmouth/followers","following_url":"https://api.github.com/users/mrbigmouth/following{/other_user}","gists_url":"https://api.github.com/users/mrbigmouth/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbigmouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbigmouth/subscriptions","organizations_url":"https://api.github.com/users/mrbigmouth/orgs","repos_url":"https://api.github.com/users/mrbigmouth/repos","events_url":"https://api.github.com/users/mrbigmouth/events{/privacy}","received_events_url":"https://api.github.com/users/mrbigmouth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrbigmouth/acgn-stock","description":"PTT ACGN股票交易市場","fork":false,"url":"https://api.github.com/repos/mrbigmouth/acgn-stock","forks_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/forks","keys_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/teams","hooks_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/hooks","issue_events_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/issues/events{/number}","events_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/events","assignees_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/assignees{/user}","branches_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/branches{/branch}","tags_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/tags","blobs_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/statuses/{sha}","languages_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/languages","stargazers_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/stargazers","contributors_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/contributors","subscribers_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/subscribers","subscription_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/subscription","commits_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/contents/{+path}","compare_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/merges","archive_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/downloads","issues_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/issues{/number}","pulls_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls{/number}","milestones_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/milestones{/number}","notifications_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/labels{/name}","releases_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/releases{/id}","deployments_url":"https://api.github.com/repos/mrbigmouth/acgn-stock/deployments","created_at":"2017-07-21T08:50:57Z","updated_at":"2018-07-24T02:12:58Z","pushed_at":"2018-07-21T23:52:42Z","git_url":"git://github.com/mrbigmouth/acgn-stock.git","ssh_url":"git@github.com:mrbigmouth/acgn-stock.git","clone_url":"https://github.com/mrbigmouth/acgn-stock.git","svn_url":"https://github.com/mrbigmouth/acgn-stock","homepage":null,"size":3361,"stargazers_count":184,"watchers_count":184,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":27,"open_issues":12,"watchers":184,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/523"},"html":{"href":"https://github.com/mrbigmouth/acgn-stock/pull/523"},"issue":{"href":"https://api.github.com/repos/mrbigmouth/acgn-stock/issues/523"},"comments":{"href":"https://api.github.com/repos/mrbigmouth/acgn-stock/issues/523/comments"},"review_comments":{"href":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/523/comments"},"review_comment":{"href":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrbigmouth/acgn-stock/pulls/523/commits"},"statuses":{"href":"https://api.github.com/repos/mrbigmouth/acgn-stock/statuses/94569d2571bd8bb71d9f1d990433da817545c5be"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":316,"deletions":35,"changed_files":5}}
{"actor":{"display_login":"SoftwareSing"}}