question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve error message "Unable to find GitHub repository matching 'anka-213'"

See original GitHub issue

Issue Type: Bug

Steps to reproduce

  1. Create a new branch on a fork and push the “publish branch” button in vs-code
  2. Click yes on “do you want to create a pull request”
  3. Fill in the details and press “Create”

Results

I get the error message

Unable to find GitHub repository matching 'anka-213'.

(Or whatever your github user name is)

Additionally, in the UI for creating a pull request, the “Merge changes from” box only allows choosing the upstream. My fork is not an option, despite it existing on github and in the list of remotes.

More info:

$ git remote -v
anka-213        git://github.com/anka-213/gf-ud.git (fetch)
anka-213        git://github.com/anka-213/gf-ud.git (push)
origin  git://github.com/GrammaticalFramework/gf-ud.git (fetch)
origin  git://github.com/GrammaticalFramework/gf-ud.git (push)

Extension version: 0.32.0 VS Code version: Code 1.61.2 (6cba118ac49a1b88332f312a8f67186f7f3c1643, 2021-10-19T15:49:28.381Z) OS version: Darwin x64 19.6.0 Restricted Mode: No

System Info
Item Value
CPUs Intel® Core™ i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 5, 4, 4
Memory (System) 64.00GB (0.16GB free)
Process Argv –crash-reporter-id 391e5f07-6e2a-42f9-a25c-b064ccd04680
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
vsccppwt:30382697
bridge0708:30335490
pygetstartedt3:30385195
dockerwalkthru:30377721
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedt:30391933
pythonvspyt187:30373474
vsqsis300:30386381
vsaa593:30376534
vssld246:30386377

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alexr00commented, Nov 15, 2021

@anka-213 fair request!

0reactions
Ark-kuncommented, Jan 6, 2022

By default, we only pay attention to remotes called upstream and origin. You can add additional remote using this setting:

"githubPullRequests.remotes": [
  "origin",
  "anka-213"
]

What is the reasoning behind this behavior? Why do you need an explicit list of remotes when the current branch already tracks a remote branch?

Why can’t the extension just use the current remote branch?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to find GitHub repository matching 'undefined' #2414
Verifying #2348 I got into the create flow, but ended in this error when I tried to create the pull request I can...
Read more >
Unable to find GitHub repository matching 'undefined'. #2395
Unable to find GitHub repository matching 'undefined'. #2395 ... Error message refers to 'undefined' when there in no published branch #2406.
Read more >
Randomly getting error 'Couldn't find a repository matching ...
I'm randomly getting this error for open source Node.js repo and travis-ci build: Bad response: 422 {"message":"Couldn't find a repository ...
Read more >
No matching repository (name for source repo of my fork) ...
The issue here: I'm working on a forked repo and archived the upstream one; it seems this plugin always tries to create issues...
Read more >
Couldn't find a repository matching this job.","error":true} · ...
I read through a related sounding issue (#279) but we're getting the same problem on a public GitHub repo. RestClient::UnprocessableEntity ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found