Skip to content

Commit b6d91b7

Browse files
author
Antoine Lelaisant
committed
Merge pull request #85 from KnpLabs/experimental/automatic-rebase
wip: automatic rebase
2 parents 1545ecf + 8b5e058 commit b6d91b7

File tree

3 files changed

+42
-7
lines changed

3 files changed

+42
-7
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Automatic rebase
2+
3+
on:
4+
workflow_dispatch: ~
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
rebase:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/github-script@v6
14+
with:
15+
script: |
16+
const query = `query($owner:String!, $name:String!, $labels:[String!]) {
17+
repository(owner:$owner, name:$name){
18+
pullRequests(labels: $labels) {
19+
nodes {
20+
headRefName
21+
}
22+
}
23+
}
24+
}`;
25+
const variables = {
26+
owner: context.repo.owner,
27+
name: context.repo.repo,
28+
labels: ['Module']
29+
}
30+
const result = await github.graphql(query, variables)
31+
console.log(result.data.repository.pullRequests.nodes)

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@
2020
###< phpunit/phpunit ###
2121

2222
.env
23+
docker-compose.override.yml

docker-compose.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: '3'
33

44
services:
55
php:
6+
platform: linux/x86_64
67
build:
78
context: .
89
dockerfile: Dockerfile
@@ -12,6 +13,7 @@ services:
1213
restart: unless-stopped
1314

1415
nginx:
16+
platform: linux/x86_64
1517
image: nginx:1.21.3-alpine
1618
ports:
1719
- 80:80
@@ -20,13 +22,14 @@ services:
2022
- ./public:/usr/src/app/public
2123
restart: unless-stopped
2224

23-
phpmyadmin:
24-
image: phpmyadmin
25-
environment:
26-
- PMA_ARBITRARY=1
27-
ports:
28-
- 8080:80
29-
restart: unless-stopped
25+
# phpmyadmin:
26+
# platform: linux/x86_64
27+
# image: phpmyadmin
28+
# environment:
29+
# - PMA_ARBITRARY=1
30+
# ports:
31+
# - 8080:80
32+
# restart: unless-stopped
3033

3134
database:
3235
image: mysql:8.0.27

0 commit comments

Comments
 (0)