diff --git a/README.md b/README.md index ab4baf47..d62452f0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Release automation for `doctrine/*` packages +# Release automation for `laminas/*` packages Please read the [`feature/`](./feature) specification to understand how this tool behaves. diff --git a/bin/console.php b/bin/console.php index 9a82c4ac..9f2e91f2 100755 --- a/bin/console.php +++ b/bin/console.php @@ -65,7 +65,7 @@ static function (int $errorCode, string $message = '', string $file = '', int $l $githubToken ); - $application = new Application('doctrine/automatic-releases', Versions::getVersion('doctrine/automatic-releases')); + $application = new Application('laminas/automatic-releases', Versions::getVersion('laminas/automatic-releases')); $application->addCommands([ new ReleaseCommand( diff --git a/composer.json b/composer.json index 9023ab08..38061262 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { - "name": "doctrine/automatic-releases", + "name": "laminas/automatic-releases", "type": "project", - "description": "Application that eases release management in the Doctrine organisation through GitHub hooks", + "description": "Application that eases release management in the Laminas organisation through GitHub actions", "license": "MIT", "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 4be27f94..ebfde28a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f499d2c507f70dcf7de407c9017597fb", + "content-hash": "26acae8c68f58597db611a0ccc0d7ebc", "packages": [ { "name": "clue/stream-filter", diff --git a/examples/.github/workflows/release-on-milestone-closed.yml b/examples/.github/workflows/release-on-milestone-closed.yml index 29a7b61c..93a77aea 100644 --- a/examples/.github/workflows/release-on-milestone-closed.yml +++ b/examples/.github/workflows/release-on-milestone-closed.yml @@ -1,5 +1,5 @@ { - "name": "doctrine/automatic-releases", + "name": "laminas/automatic-releases", "on": { "milestone": { "types": ["closed"] @@ -15,9 +15,9 @@ }, { "name": "Release", - "uses": "docker://doctrine/automatic-releases", + "uses": "docker://laminas/automatic-releases", "with": { - "args": "doctrine:automatic-releases:release" + "args": "laminas:automatic-releases:release" }, "env": { "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} @@ -25,19 +25,9 @@ }, { "name": "Release", - "uses": "docker://doctrine/automatic-releases", + "uses": "docker://laminas/automatic-releases", "with": { - "args": "doctrine:automatic-releases:push-release-branch" - }, - "env": { - "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} - } - }, - { - "name": "Release", - "uses": "docker://doctrine/automatic-releases", - "with": { - "args": "doctrine:automatic-releases:create-merge-up-pull-request" + "args": "laminas:automatic-releases:create-merge-up-pull-request" }, "env": { "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} diff --git a/infection.json.dist b/infection.json.dist index ea6eb5f8..a13b8e0e 100644 --- a/infection.json.dist +++ b/infection.json.dist @@ -14,6 +14,6 @@ "mutators": { "@default": true }, - "minMsi": 61, - "minCoveredMsi": 61 + "minMsi": 59, + "minCoveredMsi": 59 } diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 1b5920db..04c7d52f 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -2,7 +2,7 @@ diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 25e6fb61..477db293 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -7,7 +7,7 @@ failOnRisky="true" > - + ./test/unit diff --git a/src/Application/Command/CreateMergeUpPullRequest.php b/src/Application/Command/CreateMergeUpPullRequest.php index a9dac068..e4cc1cc2 100644 --- a/src/Application/Command/CreateMergeUpPullRequest.php +++ b/src/Application/Command/CreateMergeUpPullRequest.php @@ -42,7 +42,7 @@ public function __construct( Push $push, CreatePullRequest $createPullRequest ) { - parent::__construct('doctrine:automatic-releases:create-merge-up-pull-request'); + parent::__construct('laminas:automatic-releases:create-merge-up-pull-request'); $this->variables = $variables; $this->loadGithubEvent = $loadGithubEvent; diff --git a/src/Application/Command/ReleaseCommand.php b/src/Application/Command/ReleaseCommand.php index 5514771c..66d7e3c9 100644 --- a/src/Application/Command/ReleaseCommand.php +++ b/src/Application/Command/ReleaseCommand.php @@ -43,7 +43,7 @@ public function __construct( Push $push, CreateRelease $createRelease ) { - parent::__construct('doctrine:automatic-releases:release'); + parent::__construct('laminas:automatic-releases:release'); $this->environment = $environment; $this->loadEvent = $loadEvent; diff --git a/test/unit/Application/CreateMergeUpPullRequestTest.php b/test/unit/Application/CreateMergeUpPullRequestTest.php index 018d40b8..cf34b936 100644 --- a/test/unit/Application/CreateMergeUpPullRequestTest.php +++ b/test/unit/Application/CreateMergeUpPullRequestTest.php @@ -126,7 +126,7 @@ protected function setUp(): void public function testCommandName(): void { - self::assertSame('doctrine:automatic-releases:create-merge-up-pull-request', $this->command->getName()); + self::assertSame('laminas:automatic-releases:create-merge-up-pull-request', $this->command->getName()); } public function testWillCreateMergeUpPullRequest(): void diff --git a/test/unit/Application/ReleaseCommandTest.php b/test/unit/Application/ReleaseCommandTest.php index f0809022..d8a0e559 100644 --- a/test/unit/Application/ReleaseCommandTest.php +++ b/test/unit/Application/ReleaseCommandTest.php @@ -130,7 +130,7 @@ protected function setUp(): void public function testCommandName(): void { - self::assertSame('doctrine:automatic-releases:release', $this->command->getName()); + self::assertSame('laminas:automatic-releases:release', $this->command->getName()); } public function testWillRelease(): void diff --git a/test/unit/Github/CreateChangelogTextTest.php b/test/unit/Github/CreateChangelogTextTest.php index af937308..ce090df0 100644 --- a/test/unit/Github/CreateChangelogTextTest.php +++ b/test/unit/Github/CreateChangelogTextTest.php @@ -17,7 +17,7 @@ public function testGeneratedReleaseText(): void { $generateChangelog = $this->createMock(GenerateChangelog::class); - $repositoryName = RepositoryName::fromFullName('doctrine/repository-name'); + $repositoryName = RepositoryName::fromFullName('laminas/repository-name'); $semVerVersion = SemVerVersion::fromMilestoneName('1.0.0'); $generateChangelog->expects(self::once()) diff --git a/test/unit/Github/JwageGenerateChangelogTest.php b/test/unit/Github/JwageGenerateChangelogTest.php index 8e8ff41b..06385585 100644 --- a/test/unit/Github/JwageGenerateChangelogTest.php +++ b/test/unit/Github/JwageGenerateChangelogTest.php @@ -17,7 +17,7 @@ final class JwageGenerateChangelogTest extends TestCase public function testGenerateChangelog(): void { $config = (new ChangelogConfig()) - ->setUser('doctrine') + ->setUser('laminas') ->setRepository('repository-name') ->setMilestone('1.0.0'); @@ -29,7 +29,7 @@ public function testGenerateChangelog(): void ->method('generate') ->with($config, $output); - $repositoryName = RepositoryName::fromFullName('doctrine/repository-name'); + $repositoryName = RepositoryName::fromFullName('laminas/repository-name'); $semVerVersion = SemVerVersion::fromMilestoneName('1.0.0'); (new JwageGenerateChangelog($changelogGenerator))