microsoft / microsoft/vscode-pull-request-github

Auto-fork when when you don't have permissions to commit

Ouverte
#2,998 4 commentaires 6 réactions 1 personne assignée Voir sur GitHub

@alexr00 y travaille déjà.

Depuis le 21/9/2021.

feature-request
Langage dominant
TypeScript
Étoiles
2.6k
Forks
795
Merge moyen
1 j 4 h
PR mergées (30 j)
46

Description

I've started trying to submit PRs via Codespaces and the GitHub Pull Request functionality available through the extension.

There's a fundamental problem with this extension that the GitHub's web editor has already solved: if I don't have permissions to commit to a repository, I can't actually create a PR because I can't push a branch to the remote.

GitHub's web UI solved this by automatically forking and creating a branch for you (optionally allowing you to name the branch yourself, but defaulting to patch-n where n is an incrementing number based off of however many patch-n branches you already have, starting at 1).

Currently, to accomplish the same thing, I need to fork the repo myself (through the web or the gh CLI), change my origin, push to that, then make the PR from the pushed branch. That's a lot more work that is really unnecessarily painful.

Enabling users to have the ability to save their local changes to a fork and PR from that fork rapidly is essential to making Codespaces a good "quick PR" tool, and I'd really love to see it be enabled in that way that.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.