« Back

Github Cheating

Company Blogs December 30, 2011 By Igor Beslic Staff

Have you ever faced github pull request bug which manifests in a way that list of peopole you want to send pull request to doesn't contain that person?

I did, in moment when pull request should be sent ASAP. So same moment I got a workaround link but my happyness went away from my windows user smiled face when I noticed that .sh and .py endings. OK, house is burning, what is next step? Install pyton for windows? Install cygwin? Instal vmware and call friend to give you some ready linux image....

No, I do it better way also known as harder way. When you are in github and you selected Pull request you will be able to select person you want to send pull request to from drop down list. If person is not in a list do following:

  1. make sure you are browsing github from latest version of Google Chrome
  2. acquire target person github username (lets say ivicacardic)
  3. select branch you want to send pull request for, click Pull Request, click Change Commits to bring up form with drop down for target user selection
  4. right click to dropdown, choose Inspect element what will bring up chrome developer tools window
  5. expand html select element and position to any of option nodes eg. <option value="igorbeslic/liferay-portal">igorbeslic/lifera...</option>
  6. right click to value attribute and chose Edit Attribute
  7. now change value to starts with github username of person you are sending pull request like value="ivicacardic/liferay-portal"
  8. go back to page select igor beslic from drop down and than click Update Commit Range

BRAVO! Github shows that PR for ivica is ready!

Threaded Replies Author Date
Nice hack! I'm glad I use Linux ;) Thiago Leão Moreira January 4, 2012 10:11 AM
[...] Too many blog posts and wiki page updates... Anonymous January 29, 2012 5:37 AM

Nice hack! I'm glad I use Linux ;)
Posted on 1/4/12 10:11 AM.
[...] Too many blog posts and wiki page updates to list today. Well, ok, a couple. DDL III. SASS. Sesame. Social Equity. Github Cheating. That is all I have time for. The rest can be found at... [...] Read More
Posted on 1/29/12 5:37 AM.