{"id":4206,"date":"2018-03-21T11:02:22","date_gmt":"2018-03-21T06:02:22","guid":{"rendered":"https:\/\/thedevcouple.com\/?p=4206"},"modified":"2018-03-27T17:57:51","modified_gmt":"2018-03-27T12:57:51","slug":"how-to-create-a-pull-request-on-github","status":"publish","type":"post","link":"https:\/\/thedevcouple.com\/how-to-create-a-pull-request-on-github\/","title":{"rendered":"How to Create A Pull Request on GitHub?"},"content":{"rendered":"<p>Pull requests are the way of <strong>contributing <\/strong>or<strong> collaborating<\/strong> on a project on GitHub. Let&#8217;s say you want to contribute to a repository on GitHub, maybe fix a <strong>bug<\/strong> or a <strong>typo<\/strong>. Since you don&#8217;t own the repository, you <strong>can&#8217;t directly make the changes<\/strong>. So, what you do is, you simply <strong>make a copy\/fork<\/strong>\u00a0of the repository, <strong>make changes<\/strong>, and <strong>create a pull request<\/strong>.<\/p>\n<div class=\"eckosc eckosc_full_width_block\">\n<p><a href=\"https:\/\/github.com\/ahmadawais\/\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4441\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU.jpg\" alt=\"create a pull request\" width=\"1440\" height=\"810\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-768x432.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-1024x576.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-500x281.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/BMMFbqU-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/p>\n<\/div>\n<p>When you create a pull request, the owner of the original repository is notified that you have created a pull request and proposed some changes. The repository owner can <strong>review<\/strong> the changes, <strong>merge<\/strong> them, ask for a <strong>revision<\/strong>, or even <strong>discard<\/strong> them. This is how pull requests work on GitHub.<\/p>\n<div class=\"eckosc eckosc_contrast_block\"><div class=\"eckosc_contrast_block_inner\">\n<p style=\"text-align: center;\"><strong>\ud83d\udd25\u00a0FUN FACT<\/strong><\/p>\n<p style=\"text-align: center;\">Ever wondered why it is called pull request, not push request? The reason is that you ask the repository owner to <strong>pull changes from your copy<\/strong>.<\/p>\n<\/div><\/div>\n<h2>\u26a1\u00a0Steps to Create A Pull Request<\/h2>\n<p>According to our understanding of how pull request works, there are <strong>three<\/strong> basic steps to create a pull request:<\/p>\n<ol>\n<li>\ud83c\udf97 Fork the repository<\/li>\n<li>\ud83c\udfac Make changes in copy<\/li>\n<li>\ud83c\udfaf\u00a0Create a pull request<\/li>\n<\/ol>\n<h3>\u2192 Fork the Repository<\/h3>\n<p>To fork a repository, open the repository and click on the <strong>Fork button<\/strong> at the top left corner. For example, I am forking <a href=\"https:\/\/github.com\/ahmadawais\/hacktoberfest\" rel=\"nofollow noopener\" target=\"_blank\">this<\/a>\u00a0Hacktoberfest repository by <a href=\"https:\/\/github.com\/ahmadawais\" rel=\"nofollow noopener\" target=\"_blank\">Ahmad Awais<\/a>.<\/p>\n<div class=\"eckosc eckosc_full_width_block\"><a href=\"https:\/\/github.com\/ahmadawais\/hacktoberfest\" target=\"_blank\" rel=\"noopener nofollow\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4213\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo.jpg\" alt=\"Forking a repository on git hub\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/creating-pull-request-on-a-repo-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/div>\n<h3>\u2192 Make Changes in the Copy<\/h3>\n<p>Next step is to make the changes in the copy i.e fix the <strong>typo,<\/strong> <strong>bug<\/strong>, or whatever you want to contribute. You can either do it directly on GitHub \u2013 I will be doing in this guide \u2013 or you can clone the repo and push changes from your machine.<\/p>\n<p>At the time of writing this piece, I just noticed that there&#8217;s a colon missing in front of a heading in this repo. So, I am going to propose a fix for it.<\/p>\n<div class=\"eckosc eckosc_full_width_block\"><a href=\"https:\/\/github.com\/ahmadawais\/hacktoberfest\" target=\"_blank\" rel=\"noopener nofollow\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4321 size-full\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy.jpg\" alt=\"Making changes in the repo\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Changing-the-forked-copy-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/div>\n<p>Since it&#8217;s a minor fix, I can simply go ahead and edit the file on GitHub. However,\u00a0<strong>I do not\u00a0<\/strong><strong>suggest<\/strong> to edit files on GitHub for major changes in the repo. To do so, open the file in your copy of the repo and click on the\u00a0<strong>Edit\u00a0<\/strong><strong>button<\/strong> at top right corner.<\/p>\n<div class=\"eckosc eckosc_full_width_block\"><a href=\"https:\/\/github.com\/ahmadawais\/hacktoberfest\" target=\"_blank\" rel=\"noopener nofollow\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4322 size-full\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub.jpg\" alt=\"Editing a file on GitHub repo\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Editing-a-file-on-GitHub-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/div>\n<p>Clicking on the icon will open the file for editing. Make the changes you want to do and scroll down the screen. At the bottom, you&#8217;ll see a section named\u00a0<strong>Commit changes<\/strong>. In this section, you provide the description and title of the proposed changes. Fill in the details and click on\u00a0<strong>Commit Changes<\/strong> button.<\/p>\n<div class=\"eckosc eckosc_full_width_block\"><a href=\"https:\/\/github.com\/ahmadawais\/hacktoberfest\" target=\"_blank\" rel=\"noopener nofollow\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4324 size-full\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1.jpg\" alt=\"Adding details of the commit\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Details-of-the-commit-1-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/div>\n<p>Once you have clicked the Commit changes button, your changes will be saved in the file. Now, your copy of the repo is different from the original repository and you can create a pull request.<\/p>\n<div class=\"eckosc eckosc_contrast_block\"><div class=\"eckosc_contrast_block_inner\">\n<p><strong>\u26a1 Tips on Writing a Good Git Message by <a href=\"http:\/\/ahmadawais.com\" target=\"_blank\" rel=\"noopener\">Ahmad Awais<\/a><\/strong><\/p>\n<ul>\n<li>Every Pull Request must have a title.<\/li>\n<li>Every Pull Request must have a description.<\/li>\n<li>Write the title and description of what you have done in the imperative mode, that is as if you were ordering someone.<\/li>\n<li>\u2705\u00a0<strong>DO<\/strong>: Start the line with &#8220;<strong>FIX<\/strong>&#8220;, &#8220;<strong>NEW<\/strong>&#8220;, &#8220;<strong>IMPROVE<\/strong>&#8220;.<\/li>\n<li>\u274c <strong>DON&#8217;T<\/strong>: Start with &#8220;<strong>Fixed<\/strong>&#8220;, &#8220;<strong>Added<\/strong>&#8220;, &#8220;<strong>Adding<\/strong>&#8220;, &#8220;<strong>Improved<\/strong>&#8220;.<\/li>\n<li>\ud83c\udfaf Read \u2192 <a href=\"https:\/\/chris.beams.io\/posts\/git-commit\/\" rel=\"nofollow noopener\" target=\"_blank\">How to Write a Git Commit Message<\/a><\/li>\n<li>\u00a0Don&#8217;t end the summary line with a period &#8211; it&#8217;s a title and titles don&#8217;t end with a period.<\/li>\n<li>\u00a0Have fun. \ud83c\udf89<\/li>\n<\/ul>\n<\/div><\/div>\n<h3>\u2192 Create Pull Request<\/h3>\n<p>Once you have made changes to the copy of a repository, the next step is to create a pull request. To do so, open the copy of a repository and click on the <strong>Pull Request<\/strong> option.<\/p>\n<div class=\"eckosc eckosc_full_width_block\">\n<p><a href=\"https:\/\/github.com\/ahmadawais\/hacktoberfest\" target=\"_blank\" rel=\"noopener nofollow\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4326 size-full\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request.jpg\" alt=\"Creating pull request\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/Creating-Pull-Request-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/p>\n<\/div>\n<p>It will show you a detailed comparison between the original repository and your copy. Modified files are displayed side by side where you can review your changes before you finally create pull request. Remember:<\/p>\n<p>\u2705 Green lines show the modified or newly added part of the file.<\/p>\n<p>\u26d4 Red lines show the removed part of the file.<\/p>\n<div class=\"eckosc eckosc_contrast_block\"><div class=\"eckosc_contrast_block_inner\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/G2pNHCb.gif\" alt=\"\"><\/div><\/div>\n<p>After reviewing the changes, click on the\u00a0<strong>Create Pull Request<\/strong> button at the top. It will open a new window asking you details about the pull request. By default, it picks up the commit message details.<\/p>\n<p>Again, use the tips shared above to write a proper pull request message. Finally, click on\u00a0<strong>Open pull request\u00a0<\/strong>button to create a pull request.<\/p>\n<div class=\"eckosc eckosc_full_width_block\"><a href=\"https:\/\/github.com\/ahmadawais\/hacktoberfest\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4328\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github.jpg\" alt=\"Opening a new pull request on GitHub\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/opening-a-pull-request-on-github-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/div>\n<p>\ud83d\udd31 Sometimes the repository owner adds a <strong>code of conduct<\/strong> and <strong>contributing guidelines<\/strong> to create a pull request. In case, if there is any guideline by repository maintainer, <strong>make sure you follow that<\/strong>. It helps them quickly understand the pull request and review it.<\/p>\n<p>For example, in the above pull request description, I answered a question in the description i.e What does a pull request do? \u2013 IMPROVE. It was a part of contributing guideline to easily understand the proposed change. That was all for it! If you have any questions feel free to ask in the comments below.<\/p>\n<p>Peace.\u00a0\u270c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pull requests are the way of contributing or collaborating on a project on GitHub. Let&#8217;s say you want to contribute to a repository on GitHub, maybe fix a bug or a typo. Since you don&#8217;t own the repository, you can&#8217;t directly make the changes. So, what you do is, you simply make a copy\/fork\u00a0of the repository, make changes, and create a pull request.<\/p>\n","protected":false},"author":4,"featured_media":4440,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1,6],"tags":[],"coauthors":[82],"jetpack_featured_media_url":"https:\/\/thedevcouple.com\/wp-content\/uploads\/2018\/03\/1odm71O.jpg","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/4206"}],"collection":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/comments?post=4206"}],"version-history":[{"count":5,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/4206\/revisions"}],"predecessor-version":[{"id":4449,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/4206\/revisions\/4449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/media\/4440"}],"wp:attachment":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/media?parent=4206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/categories?post=4206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/tags?post=4206"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/coauthors?post=4206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}