Skip to content

Support creating workspaces from Drupal GitLab issue forks and associated merge requests #163

Description

@gxleano

Problem

From Drupal Slack https://drupal.slack.com/archives/C5TQRQZRR/p1781693360466449

When creating a new workspace from a GitLab issue number, Coder DDEV incorrectly reports that no issue fork exists, even though the issue fork has already been created and push access has been granted.

Steps to reproduce

  1. Follow the permissions and setup described in the Drupal issue notes:
    https://start.coder.ddev.com/drupal-issue
  2. Enter the GitLab issue number 3591879 in the workspace loader.
  3. Attempt to create a workspace.

Actual result

The following error is displayed:

No issue fork exists for #3591879 yet. To work on this issue, visit the issue page on drupal.org and click "Get push access" to create a fork, then come back here.

Expected result

The workspace should be created successfully because an issue fork already exists and push access has already been granted.

For example, the issue fork exists at:

https://git.drupalcode.org/issue/ui_icons-3591879

and contains the issue branch:

3591879-make-the-ui-icon-fieldwidget-editable-as-a-drupal-canvas-component-input

Proposed enhancement

When a GitLab issue number is entered, Coder DDEV should be able to:

  1. Locate the corresponding GitLab issue fork.
  2. Detect any associated Merge Request(s).
  3. Create the workspace from the issue branch or MR branch automatically.

For example:

In this example, creating a workspace for issue 3591879 should result in a workspace that already contains the code from MR !99, allowing contributors to review, test, and continue work immediately without manually checking out the MR branch.

Benefits

  • Better support for GitLab-native Drupal contribution workflows.
  • Faster onboarding for contributors reviewing existing work.
  • Reduced confusion caused by Drupal.org-specific error messages when working with GitLab issues.
  • Consistent workspace creation experience regardless of whether the issue is hosted on Drupal.org or GitLab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions