diff --git a/.github/workflows/automatic-rebase.yml b/.github/workflows/automatic-rebase.yml new file mode 100644 index 0000000..e8c0e74 --- /dev/null +++ b/.github/workflows/automatic-rebase.yml @@ -0,0 +1,31 @@ +name: Automatic rebase + +on: + workflow_dispatch: ~ + push: + branches: + - master + +jobs: + rebase: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + script: | + const query = `query($owner:String!, $name:String!, $labels:[String!]) { + repository(owner:$owner, name:$name){ + pullRequests(labels: $labels) { + nodes { + headRefName + } + } + } + }`; + const variables = { + owner: context.repo.owner, + name: context.repo.repo, + labels: ['Module'] + } + const result = await github.graphql(query, variables) + console.log(result.data.repository.pullRequests.nodes) diff --git a/.gitignore b/.gitignore index 90e5aec..673cd28 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ ###< phpunit/phpunit ### .env +docker-compose.override.yml diff --git a/docker-compose.yml b/docker-compose.yml index 2b63f27..bddc57e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ version: '3' services: php: + platform: linux/x86_64 build: context: . dockerfile: Dockerfile @@ -12,6 +13,7 @@ services: restart: unless-stopped nginx: + platform: linux/x86_64 image: nginx:1.21.3-alpine ports: - 80:80 @@ -20,13 +22,14 @@ services: - ./public:/usr/src/app/public restart: unless-stopped - phpmyadmin: - image: phpmyadmin - environment: - - PMA_ARBITRARY=1 - ports: - - 8080:80 - restart: unless-stopped +# phpmyadmin: +# platform: linux/x86_64 +# image: phpmyadmin +# environment: +# - PMA_ARBITRARY=1 +# ports: +# - 8080:80 +# restart: unless-stopped database: image: mysql:8.0.27