{"action":"created","issue":{"url":"https://api.github.com/repos/24OI/OI-wiki/issues/130","repository_url":"https://api.github.com/repos/24OI/OI-wiki","labels_url":"https://api.github.com/repos/24OI/OI-wiki/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/24OI/OI-wiki/issues/130/comments","events_url":"https://api.github.com/repos/24OI/OI-wiki/issues/130/events","html_url":"https://github.com/24OI/OI-wiki/issues/130","id":351869874,"node_id":"MDU6SXNzdWUzNTE4Njk4NzQ=","number":130,"title":"suggest : Use squash merge and amend commit in certain condition ","user":{"login":"Xeonacid","id":13995937,"node_id":"MDQ6VXNlcjEzOTk1OTM3","avatar_url":"https://avatars2.githubusercontent.com/u/13995937?v=4","gravatar_id":"","url":"https://api.github.com/users/Xeonacid","html_url":"https://github.com/Xeonacid","followers_url":"https://api.github.com/users/Xeonacid/followers","following_url":"https://api.github.com/users/Xeonacid/following{/other_user}","gists_url":"https://api.github.com/users/Xeonacid/gists{/gist_id}","starred_url":"https://api.github.com/users/Xeonacid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xeonacid/subscriptions","organizations_url":"https://api.github.com/users/Xeonacid/orgs","repos_url":"https://api.github.com/users/Xeonacid/repos","events_url":"https://api.github.com/users/Xeonacid/events{/privacy}","received_events_url":"https://api.github.com/users/Xeonacid/received_events","type":"User","site_admin":false},"labels":[{"id":990188726,"node_id":"MDU6TGFiZWw5OTAxODg3MjY=","url":"https://api.github.com/repos/24OI/OI-wiki/labels/discussion","name":"discussion","color":"d876e3","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-19T03:14:40Z","updated_at":"2018-08-24T14:37:50Z","closed_at":"2018-08-24T14:37:50Z","author_association":"COLLABORATOR","body":"如果几个 commit 都是在做同一件事，或者说后面的 commit 是对前面的小修补，我们可以在 commit 时使用`git commit --amend`，或在 merge 时使用 squash merge，将几个 commit 合成一个，这样可以使 master 分支保持整洁。\r\n![snipaste_2018-08-19_11-17-46](https://user-images.githubusercontent.com/13995937/44305078-8e769b80-a3a1-11e8-8dc9-e229a4452873.png)\r\n（如果不是同一件事就别合并了23333\r\n\r\nExample: #93 #122 #127 \r\n\r\n如何？"},"comment":{"url":"https://api.github.com/repos/24OI/OI-wiki/issues/comments/415778979","html_url":"https://github.com/24OI/OI-wiki/issues/130#issuecomment-415778979","issue_url":"https://api.github.com/repos/24OI/OI-wiki/issues/130","id":415778979,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTc3ODk3OQ==","user":{"login":"Ir1d","id":10709657,"node_id":"MDQ6VXNlcjEwNzA5NjU3","avatar_url":"https://avatars0.githubusercontent.com/u/10709657?v=4","gravatar_id":"","url":"https://api.github.com/users/Ir1d","html_url":"https://github.com/Ir1d","followers_url":"https://api.github.com/users/Ir1d/followers","following_url":"https://api.github.com/users/Ir1d/following{/other_user}","gists_url":"https://api.github.com/users/Ir1d/gists{/gist_id}","starred_url":"https://api.github.com/users/Ir1d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ir1d/subscriptions","organizations_url":"https://api.github.com/users/Ir1d/orgs","repos_url":"https://api.github.com/users/Ir1d/repos","events_url":"https://api.github.com/users/Ir1d/events{/privacy}","received_events_url":"https://api.github.com/users/Ir1d/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T14:37:50Z","updated_at":"2018-08-24T14:37:50Z","author_association":"MEMBER","body":"建议以后一个 pr 只做一件事，这样 squash 之后不会把几个内容合到一个 commit 里面= =\r\n\r\n以及为了防止（我）日后点错，已经关了 `create a merge commit`，默认是 squash……"}}
{"actor":{"display_login":"Ir1d"}}