To have your commits merged in GitHub, you must have verified commits. If you forget to do this for a MR, you will need to rebase/replay your commits.
- Uses RoboValidate to run the various validations.
- Can be run manually locally via:
./robo.sh validate:all
- Twig Validation and PHPStan are not run (yet, but soon) when
./robo.sh validate:all
is run, run them manually via:vendor/bin/twig-cs-fixer lint
andvendor/bin/phpstan --memory-limit=-1
.
- Twig Validation and PHPStan are not run (yet, but soon) when
- Is run when any branch is pushed to GitHub via GitHub Actions. Validation on Git commits is only run remotely when a pull request is made so that only new commits are checked.
All branches created towards tasks should be in the form feature/DIGITAL-X-Y
. X
is the Jira ticket number and Y
is a short description in lower case separated by dashes.
Commit messages must be in the form: DIGITAL-X:YZ
. X
is the Jira ticket number, Y
is a space and Z
is a short description of the work done.
See the coding standards documentation for Drupal. The project validates against the Drupal
and DrupalPractice
documentation.
Enable coding standards help in your IDE so you're not surprised by a bunch of errors when you push up.