- Prerequisites
- Lando
- composer
- github personal access token (https://github.com/settings/tokens)
- pantheon machine token (https://pantheon.io/docs/machine-tokens/)
- Init Lando with Github
lando init github --recipe=pantheon composer installlando start- (optional) Turn off caching. Turn on debug. (https://www.drupal.org/node/2598914)
Note: Runlando drush crinstead ofdrush crin step 7.
(https://pantheon.io/docs/guides/build-tools/new-pr/)
(https://gist.github.com/Chaser324/ce0505fbed06b947d962)
(https://www.atlassian.com/git/tutorials/making-a-pull-request)
TLDR version:
- Fork the repo
- Create a branch and make changes on your fork. Push branch.
- Open a pull request.
- The team reviews, discusses, and makes change requests to the change
- Change is approved and merged
- Set upstream of fork
git remote add upstream git@github.com:SFDigitalServices/sfgov.git - Fetch from upstream
git fetch upstream - Switch to master
git checkout master - Merge upstream's master into fork master
git merge upstream\master
- Create a new branch
git clone -b new_branch - Install module with composer
composer require drupal/paragraphs - Enable the module
lando drush -y en paragraphs - Export config
lando drush -y cex - Check in modified composer and config files
git add composer.* config/* - Commit and push changes
git commit -m 'installed paragraphs' && git push - Wait for CircleCI to build and deploy to a multidev. CircleCI will add comment to the checkin on GitHub with link to the created MultiDev.
- Create Pull Request and merge to master
- Switch away from branch and delete branch
git checkout master && git push origin --delete new_branch && git branch -d new_branch