Appearance
MergeRequests
php
final readonly class Zairakai\LaravelDevTools\Update\MergeRequestsThe merge requests of the update: the ones that are open, the new ones, and their merge when the pipeline succeeds.
Source: src/Update/MergeRequests.php
Constants
| Name | Value | Description |
|---|---|---|
BRANCH_PREFIX | 'chore/update-dependencies' | |
COMMIT_SUBJECT | 'chore(deps): update the dependencies' |
Methods
__construct()
php
public function __construct(GitLabApi $api, Shell $shell)hasOpenUpdate()
php
public function hasOpenUpdate(): boolmergeWhenGreen()
php
public function mergeWhenGreen(int $iid): voidMerge the request when its pipeline succeeds. GitLab needs a moment to create the pipeline of a new request.
open()
php
public function open(string $source, string $target, string $description, bool $removeSource, string $title = self::COMMIT_SUBJECT): voidopened()
php
public function opened(string $query = ''): arrayReturns list<array<string, mixed>>