-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.relazy.php
46 lines (43 loc) · 1.52 KB
/
.relazy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/*
* This file is part of the Relazy package.
*
* (c) Christian Gripp <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Nucleos\Relazy\Action\Changelog\UpdateAction;
use Nucleos\Relazy\Action\Composer\OutdatedAction;
use Nucleos\Relazy\Action\Composer\StabilityCheckAction;
use Nucleos\Relazy\Action\Composer\ValidateAction;
use Nucleos\Relazy\Action\VersionControl\CommitAction;
use Nucleos\Relazy\Action\VersionControl\CurrentVersionAction;
use Nucleos\Relazy\Action\VersionControl\LastChangesAction;
use Nucleos\Relazy\Changelog\Formatter\PrefixGroupFormatter;
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\Version\Generator\SemanticGenerator;
use Nucleos\Relazy\Version\Persister\TagPersister;
use Nucleos\Relazy\VersionControl\Git;
return (new RelazyConfig(new Git()))
->versionGenerator(new SemanticGenerator())
->versionPersister(new TagPersister())
->formatter(new PrefixGroupFormatter(
defaultGroup: 'Changed',
groups: ['Feature', 'Enhancement', 'Fixed', 'Translation', 'Changed'],
ignorePrefixes: ['Doc', 'Pedantic']
))
->startupActions([
new ValidateAction(),
new StabilityCheckAction(),
new OutdatedAction(),
new LastChangesAction(),
new CurrentVersionAction(),
])
->preReleaseActions([
new UpdateAction(
file: 'CHANGELOG.MD',
),
new CommitAction(filter: ['CHANGELOG.MD']),
])
;