{"action":"created","issue":{"url":"https://api.github.com/repos/oakiboaki/merge-conflict/issues/2","repository_url":"https://api.github.com/repos/oakiboaki/merge-conflict","labels_url":"https://api.github.com/repos/oakiboaki/merge-conflict/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/oakiboaki/merge-conflict/issues/2/comments","events_url":"https://api.github.com/repos/oakiboaki/merge-conflict/issues/2/events","html_url":"https://github.com/oakiboaki/merge-conflict/pull/2","id":411218233,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUzNzI5ODM5","number":2,"title":"Second merge: Let's try a conflict","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-17T18:26:41Z","updated_at":"2019-02-17T18:42:45Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/oakiboaki/merge-conflict/pulls/2","html_url":"https://github.com/oakiboaki/merge-conflict/pull/2","diff_url":"https://github.com/oakiboaki/merge-conflict/pull/2.diff","patch_url":"https://github.com/oakiboaki/merge-conflict/pull/2.patch"},"body":"## Step 3: Resolve a simple conflict\n\nYou may merge a lot of pull requests before you encounter your first merge conflict. That’s because Git is really smart when it comes to merging. Unless you're paying close attention to other branches in your repository, you usually won't know you have a conflict until you create the pull request.\n\nThis branch is a great example. In this scenario, two of our friends have been working in this repository. They both created branches, made changes to the `_config.yml` file, and opened pull requests. One pull request was merged to `master` without problems, but now the other pull request shows a conflict.\n\nThe history of `master` and this branch look something like this:\n\n![deviated branches](https://user-images.githubusercontent.com/13326548/36703493-b8f4d5ee-1b10-11e8-9f95-4ec9993fe704.png)\n\nHowever, because this pull request changes the same lines in the `_config.yml` file, there is a merge conflict. \n\nLet's help our friends resolve this conflict.\n\n### :keyboard: Activity: Resolving your first merge conflict\n\n1. At the bottom of the page in the \"This branch has conflicts that must be resolved\" section of the Pull Request, click the **Resolve conflicts** button\n1. Look for the highlighted sections that begins with  `<<<<<<<  update-config` and ends with `>>>>>>> master`. These markers are added by Git to show you the content that is in conflict\n1. Remove the changes made on the master branch by deleting all of the content below the `=======` and above `>>>>>>> master`\n1. Next, remove the merge conflict markers by deleting the following lines:\n\n       <<<<<<< update-config\n       =======\n       >>>>>>> master\n\n1. **Optional:** If you'd like, you can edit the `_config.yml` file with your own information. Change any of the lines within the file, even outside of where the markers were. More about this below\n1. With the merge conflict markers removed, click **Mark as resolved**\n1. Finally, click **Commit merge**\n\n> Sometimes, the best way to resolve a merge conflict is to add content that's different from both branches, or even to combine all of the changes from both branches. This is why Git needs a human to look at the code and make the proper fixes.\n\n<hr>\n<h3 align=\"center\">Watch below for my response</h3>\n"},"comment":{"url":"https://api.github.com/repos/oakiboaki/merge-conflict/issues/comments/464493288","html_url":"https://github.com/oakiboaki/merge-conflict/pull/2#issuecomment-464493288","issue_url":"https://api.github.com/repos/oakiboaki/merge-conflict/issues/2","id":464493288,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NDQ5MzI4OA==","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-02-17T18:42:45Z","updated_at":"2019-02-17T18:42:45Z","author_association":"NONE","body":"## Step 4: Merge the first resolved pull request\n\nYou did it, @oakiboaki! Nice job resolving that conflict. Most conflicts in your day to day experience should be pretty simple, as in that activity. You may need to discuss the resolution with your peers, but if your team is regularly working together and reviewing pull requests, resolving conflicts is easy.\n\n### What just happened?\n\nResolving a conflict doesn't automatically merge the Pull Request in GitHub. Instead, it stores the resolution of the conflict in a merge commit and allows you and your team to keep working.\n\nTo resolve a conflict, GitHub performs what is known as a *reverse merge*. This means that the changes from the `master` branch were successfully merged into your `update-config` branch. If you merged your branch in to `master`, it would look like this:\n\n![merge after conflict](https://user-images.githubusercontent.com/13326548/36703509-c8bab1ec-1b10-11e8-80ac-5398e066a18d.png)\n\nBut with a reverse merge, only the `update-config` branch is updated:\n\n![reverse merge after conflict](https://user-images.githubusercontent.com/13326548/36703516-d31730ac-1b10-11e8-8e4d-0fa17baead36.png)\n\nThis allows you to test the resolved code on your branch before you merge it into `master`. The `master` branch should be treated as production ready, bug-free code.\n\n### :keyboard: Activity: Merge this pull request\n\nGo ahead and merge this pull request now.\n\n> I have already approved this pull request, so if you still see \"Review required\" in the merge view, try refreshing the page.\n\n1. Click **Merge pull request** below\n1. Click **Confirm merge**\n1. Click **Delete branch** and get ready for your next activity\n\n<hr>\n<h3 align=\"center\">Watch below for my response</h3>\n"}}
{"actor":{"display_login":"github-learning-lab"}}