Skip to content

Commit

Permalink
Merge pull request #85 from KnpLabs/experimental/automatic-rebase
Browse files Browse the repository at this point in the history
wip: automatic rebase
  • Loading branch information
Antoine Lelaisant committed Jun 23, 2023
2 parents 1545ecf + 8b5e058 commit 0839af2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/automatic-rebase.yml
Original file line number Diff line number Diff line change
@@ -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, first: 50) {
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)
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
###< phpunit/phpunit ###

.env
docker-compose.override.yml
17 changes: 10 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: '3'

services:
php:
platform: linux/x86_64
build:
context: .
dockerfile: Dockerfile
Expand All @@ -12,6 +13,7 @@ services:
restart: unless-stopped

nginx:
platform: linux/x86_64
image: nginx:1.21.3-alpine
ports:
- 80:80
Expand All @@ -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
Expand Down

0 comments on commit 0839af2

Please sign in to comment.