vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Can't create issues - "Creating issue failed: Issues are disabled for this repo" although enabled

Open bamurtaugh opened this issue 4 years ago • 5 comments
trafficstars

  • Extension version: GHPRI Nightly, v2021.3.42303
  • VSCode Version: Codespaces Version: 1.55.0-insider Commit: c185983a683d14c396952dd432459097bc7f757f Date: 2021-03-30T12:43:45.267Z Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
  • OS: Windows 10, Chrome browser

Steps to Reproduce:

  1. Create a Codespace on https://github.com/bamurtaugh/communication-services-web-calling-hero

  2. Attempt to create an issue

  3. Fails with "Creating issue failed: Issues are disabled for this repo" image

  4. Check my repo, issues are enabled. However, I noticed they're disabled for the upstream from which I forked https://github.com/burkeholland/communication-services-web-calling-hero (although issues are enabled for the upstream from which Burke forked, https://github.com/Azure-Samples/communication-services-web-calling-hero)

Here are my remotes when using git remote -v:

image

I ran into this as the "owner" of the fork, and a collaborator I added to the fork also experienced this same behavior.

I saw https://github.com/microsoft/vscode-pull-request-github/issues/1517, which seems to be related here.

bamurtaugh avatar Mar 31 '21 00:03 bamurtaugh

We try to be smart and when a repo is a fork, we figure that you are most likely to want to create an issue on the upstream.

Looks like we should fallback to the fork for creating the issue if we encounter this error.

alexr00 avatar Mar 31 '21 09:03 alexr00

@alexr00 What if we want to edit issues onto the fork/origin repo? Can we configure that somewhere? My Fork is the continuation of a disbanded project.

nathansegers avatar May 31 '21 14:05 nathansegers

@nathansegers we should also add a way for you do that :)

alexr00 avatar May 31 '21 15:05 alexr00

I have a similar issue, but slightly different symptom. Issues are enabled on the origin repo, I forked that repo and enabled issues on my own fork. If I add an issue to my fork via GitHub it does not appear in VSCode. If I add an issue via VSCode it logs under the origin, not my fork.

PostmanSpat avatar Aug 23 '21 00:08 PostmanSpat

@alexr00 Did we fix this issue?

asecurityguru avatar Apr 27 '22 04:04 asecurityguru