When a merge request is created against a contrib module such as paragraphs
if there is a .tugboat.yaml file
then find out the Drupal core version out of the merge request's base branch. For example, https://git.drupalcode.org/project/paragraphs/-/merge_requests/5 has a base branch of 8.x-1.x)
then pick the latest base preview for such core version. For example: Drupal 8's latest base preview is 8.9.x
then pick the Tugboat config file from https://github.com/TugboatQA/drupalorg/tree/master/drupal
then append the merge request's .tugboat.yaml file onto the Tugboat config file
then trigger a base preview via the API

When viewing an issue
Figure out a way to add metadata onto the preview so we can match a merge request with a preview at the Tugboat dashboard in order to identify which previews to display.

Issue fork drupalorg-3194036

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

juampynr created an issue. See original summary.

juampynr’s picture

Status: Active » Needs review

Ready for review.

drumm made their first commit to this issue’s fork.

juampynr’s picture

Thanks for the feedback, @drumm. This is ready for another review.

juampynr’s picture

@drumm, here is a sample Tugboat configuration file that we could link somewhere in the docs: https://gist.github.com/juampynr/af322857c73ba6d1ae1f70614d622724. It's inspired by https://github.com/q0rban/tugboat-drupal.

juampynr’s picture

@drumm all done! Ready for another review.

  • drumm committed 42c1154 on 7.x-3.x authored by juampynr
    Issue #3194036 by juampynr, drumm: Add Tugboat support for contrib...
juampynr’s picture

Status: Needs review » Fixed

This is done.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.