diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 6a9bba4..b1c4e50 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -1,9 +1,12 @@ -name: Auto assign issues +name: Auto assign issues and pull requests on: issues: types: - opened + pull_request: + types: + - opened jobs: run: @@ -12,11 +15,11 @@ jobs: issues: write pull-requests: write steps: - - name: Assign issues - uses: gustavofreze/auto-assign@1.0.0 + - name: Assign issues and pull requests + uses: gustavofreze/auto-assign@1.1.4 with: assignees: '${{ secrets.ASSIGNEES }}' github_token: '${{ secrets.GITHUB_TOKEN }}' allow_self_assign: 'true' allow_no_assignees: 'true' - assignment_options: 'ISSUE' \ No newline at end of file + assignment_options: 'ISSUE,PULL_REQUEST' \ No newline at end of file diff --git a/composer.json b/composer.json index fa2b34c..ba27b55 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,7 @@ "php": "^8.3", "symfony/process": "^7.1", "tiny-blocks/ksuid": "^1", + "tiny-blocks/mapper": "^1", "tiny-blocks/collection": "^1" }, "require-dev": { diff --git a/src/Internal/Containers/Models/Address/Ports.php b/src/Internal/Containers/Models/Address/Ports.php index 72b3409..6fd0048 100644 --- a/src/Internal/Containers/Models/Address/Ports.php +++ b/src/Internal/Containers/Models/Address/Ports.php @@ -5,8 +5,8 @@ namespace TinyBlocks\DockerContainer\Internal\Containers\Models\Address; use TinyBlocks\Collection\Collection; -use TinyBlocks\Collection\PreserveKeys; use TinyBlocks\DockerContainer\Contracts\Ports as ContainerPorts; +use TinyBlocks\Mapper\KeyPreservation; final readonly class Ports implements ContainerPorts { @@ -18,7 +18,7 @@ public static function createFrom(array $elements): Ports { $exposedPorts = Collection::createFrom($elements['exposedPorts']) ->filter() - ->toArray(preserveKeys: PreserveKeys::DISCARD); + ->toArray(keyPreservation: KeyPreservation::DISCARD); return new Ports(exposedPorts: $exposedPorts); } diff --git a/tests/Integration/DockerContainerTest.php b/tests/Integration/DockerContainerTest.php index 9ca415e..95446e0 100644 --- a/tests/Integration/DockerContainerTest.php +++ b/tests/Integration/DockerContainerTest.php @@ -47,7 +47,7 @@ public function testMultipleContainersAreRunSuccessfully(): void /** @Given a Flyway container is configured to perform database migrations */ $jdbcUrl = $mySQLContainer->getJdbcUrl(); - $flywayContainer = GenericDockerContainer::from(image: 'flyway/flyway:11.0.0') + $flywayContainer = GenericDockerContainer::from(image: 'flyway/flyway:11.1.0') ->withNetwork(name: 'tiny-blocks') ->copyToContainer(pathOnHost: '/test-adm-migrations', pathOnContainer: '/flyway/sql') ->withVolumeMapping(pathOnHost: '/test-adm-migrations', pathOnContainer: '/flyway/sql')