Appearance
Updater
php
final class Zairakai\LaravelDevTools\Update\UpdaterAutomatic updates of the requirements of a PHP package of the zairakai group, in GitLab CI.
- update: update Composer, open a merge request into develop and merge it when its pipeline succeeds (UpdateRun).
- release: open the merge request of develop into main after an update (ReleaseRun).
- tag: tag main when a published range changed since the last tag (TagRun).
- cascade: after the publication of this package, start the update of the projects that use it (CascadeRun).
- audit: look for security advisories, open one issue per advisory and, with AUTO_FIX=true, start an update to fix them (AuditRun).
- audit-check: read the report of
composer audit --format=jsonand fail on an advisory that the daily audit fixes at once (high or critical): the same level asaudit, for the blocking audit of every pipeline (AuditCheckRun). - policy: in the repository dependency-policy, lift the entries of php.json whose condition is met (PolicyWatchRun).
- policy-check: fail when the change since a ref updates a package of the dependency policy (PolicyCheckRun).
- dependabot-sync: rewrite the ignore rules of .github/dependabot.yml from the dependency policy (DependabotRun).
It reads .dependency-update.json at the root of the project, like the JavaScript tool of the group. This class reads the configuration and starts the mode that is asked for.
Source: src/Update/Updater.php
Methods
__construct()
php
public function __construct(string $directory)run()
php
public function run(string $mode, string $argument = ''): void