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
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
Comment #3
juampynr commentedReady for review.
Comment #5
juampynr commentedThanks for the feedback, @drumm. This is ready for another review.
Comment #6
juampynr commented@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.
Comment #7
juampynr commented@drumm all done! Ready for another review.
Comment #9
juampynr commentedThis is done.