title: Automatically open a pull request on github by command line
body: <p>I'm using git to versioning a collaborate project.</p>
  
  <p>And I have two remotes. <strong>fork</strong> is a fork of an <strong>project</strong>, and <strong>origin</strong> is the original project.</p>
  
  <p>So, could I when I send a push (git push fork master) automatically create a pull request available in <strong>origin</strong> to merge it?</p>
  
  <p>I can't commit directly to <strong>origin</strong> (I know this is possible). I need push first to <strong>fork</strong> and if the admin aproves it, accept on <strong>origin</strong>. I would like automate this process, avoiding me to manually go to github and open a fork.</p>
  
  <p>How could I do this?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Private Organization:</p>
  
  <pre><code>name: Org
  repository: main
  branch: master
  </code></pre>
  
  <p>Private Fork:</p>
  
  <pre><code>name: OrgFork (A organization of mine with forks from **Org**) 
  repository: main
  branch: testing
  </code></pre>
  
  <p>I tried the following approach, but didn't worked yet:</p>
  
  <pre><code>curl -X POST -u &lt;Username&gt; -k -d '{"title": "&lt;Title&gt;","head": "Org:main","base": "testing"}' https://api.github.com/repos/Org/main/pulls
  </code></pre>
  
  <p>what is wrong? How can I fix this?</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>Another attempt:</p>
  
  <pre><code>hub pull-request "Testing" -b OrgFork:main:testing -h OrgFork:main:master
  </code></pre>