dogit icon indicating copy to clipboard operation
dogit copied to clipboard

Command to register issue fork remote and checkout branch if MR does not exist.

Open mglaman opened this issue 4 years ago • 2 comments

Finally trying this out :)

I have a habit of making an issue fork and doing work before opening an MR. However, an error pops if the MR doesn't exist:

dogit issue:mr 3230959
Screen Shot 2021-09-01 at 9 03 22 PM

It'd be great if it could set everything up even if an MR doesn't exist, yet.

mglaman avatar Sep 02 '21 02:09 mglaman

Absolutely, this is a great idea for enhancement.

Theres some blockers though

  • To date the app doesnt mutate/modify any data on d.o. so some extra bits and safety will be needed.
  • Authentication will need to be a thing, inc TFA?
  • Is there a way to do everything we need just by interacting with Gitlab? Can we use Gitlabs access tokens? The UI's are disabled for creating Personal Tokens but we may be able to use them via API only? Needs investigation. Project access tokens are accessible? Usable?

dpi avatar Sep 02 '21 07:09 dpi

I'm not sure if any of that is necessary?

I don't think the question is to make any changes. Thsi is after clicking the issue fork button, the branch does exist and the drupal.org UI knows it and shows it, it's just not yet an MR.

So IMHO, despite then being slightly incorrectly named, issue:mr could be extended to, if there are no open merge requests, fall back to branches on that issue fork and allow to pick one of those.

Berdir avatar Nov 06 '23 06:11 Berdir