astrofrog / batchpr

Package in need of a better name to automate opening pull requests :robot:
BSD 2-Clause "Simplified" License
3 stars 4 forks source link

Does not work if I also own the affected repo to be updated #27

Closed pllim closed 3 years ago

pllim commented 3 years ago

Let's say the person running this has GitHub account under username and wants to do some mass PR and username/somerepo happens to be part of the list, the person will encounter some error like this:

Processing repository: username/somerepo
  > Ensuring repository exists
  > Ensuring fork exists (and creating if not)
  > Working in /tmp/...
  > git clone --depth 1 git@github.com:username/somerepo.git
  > git checkout origin/branchname
    error: pathspec 'origin/branchname' did not match any file(s) known to git
  > git remote add upstream git@github.com:username/somerepo.git
  > git fetch upstream
  > git checkout upstream/master
  > git checkout -b branchname
  > git add some_file.txt
  > git commit -m "Some commit"
    On branch branchname
...
Exception: Command 'git commit -m "Some commit"' failed

The return code is 1.

pllim commented 3 years ago

No, wait... I think the error is from something else. Never mind.