Skip to content

Commit 32d6b93

Browse files
Trigger pipeline on PRs
1 parent ea11198 commit 32d6b93

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

.github/workflows/api-gateway.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- api-gateway/**
77
branches:
88
- '**'
9+
pull_request:
10+
branches: [main]
911

1012
jobs:
1113
build:

.github/workflows/bookstore-webapp.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- bookstore-webapp/**
77
branches:
88
- '**'
9+
pull_request:
10+
branches: [main]
911

1012
jobs:
1113
build:

.github/workflows/catalog-service.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- catalog-service/**
77
branches:
88
- '**'
9+
pull_request:
10+
branches: [main]
911

1012
jobs:
1113
build:

.github/workflows/notification-service.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- notification-service/**
77
branches:
88
- '**'
9+
pull_request:
10+
branches: [main]
911

1012
jobs:
1113
build:

.github/workflows/order-service.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- order-service/**
77
branches:
88
- '**'
9+
pull_request:
10+
branches: [main]
911

1012
jobs:
1113
build:

bookstore-webapp/src/main/java/com/sivalabs/bookstore/webapp/clients/ClientsConfig.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class ClientsConfig {
2323

2424
@Bean
2525
RestClientCustomizer restClientCustomizer() {
26-
return restClientBuilder -> restClientBuilder.baseUrl(properties.apiGatewayUrl())
26+
return restClientBuilder -> restClientBuilder
27+
.baseUrl(properties.apiGatewayUrl())
2728
.requestFactory(ClientHttpRequestFactories.get(ClientHttpRequestFactorySettings.DEFAULTS
2829
.withConnectTimeout(Duration.ofSeconds(5))
2930
.withReadTimeout(Duration.ofSeconds(5))));

0 commit comments

Comments
 (0)