Skip to content

Commit

Permalink
Corrected package name: now called laminas/automatic-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jul 9, 2020
1 parent a82e801 commit 49bde1c
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion bin/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 5 additions & 15 deletions examples/.github/workflows/release-on-milestone-closed.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "doctrine/automatic-releases",
"name": "laminas/automatic-releases",
"on": {
"milestone": {
"types": ["closed"]
Expand All @@ -15,29 +15,19 @@
},
{
"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 }}
}
},
{
"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 }}
Expand Down
4 changes: 2 additions & 2 deletions infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"mutators": {
"@default": true
},
"minMsi": 61,
"minCoveredMsi": 61
"minMsi": 59,
"minCoveredMsi": 59
}
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
name="doctrine/automatic-releases CS rules"
name="laminas/automatic-releases CS rules"
>
<arg value="p"/>
<arg value="s"/>
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
failOnRisky="true"
>
<testsuites>
<testsuite name="doctrine/automatic-releases unit tests">
<testsuite name="laminas/automatic-releases unit tests">
<directory>./test/unit</directory>
</testsuite>
</testsuites>
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Command/CreateMergeUpPullRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Command/ReleaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Application/CreateMergeUpPullRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Application/ReleaseCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Github/CreateChangelogTextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions test/unit/Github/JwageGenerateChangelogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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))
Expand Down

0 comments on commit 49bde1c

Please sign in to comment.