Skip to content

Commit d133851

Browse files
committed
Allow changing --since argument
* when PR, we want diff agaist base ref (master usually) * when push to master or any other branch, there's no base ref so use HEAD~1 as the only sensible choice * when developing locally, fallback to BASE_REF default from Makefile (master that is)
1 parent 51c947f commit d133851

18 files changed

+21
-1
lines changed

.github/workflows/aggregate_root_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
RUBY_VERSION: "${{ matrix.ruby_version }}"
4040
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
4141
BUNDLE_WITHOUT: database
42+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
4243
strategy:
4344
fail-fast: false
4445
matrix:

.github/workflows/minitest-ruby_event_store_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
RUBY_VERSION: "${{ matrix.ruby_version }}"
3030
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
3131
BUNDLE_WITHOUT: database
32+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
3233
strategy:
3334
fail-fast: false
3435
matrix:

.github/workflows/rails_event_store_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
RUBY_VERSION: "${{ matrix.ruby_version }}"
4040
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
4141
BUNDLE_WITHOUT: database
42+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
4243
strategy:
4344
fail-fast: false
4445
matrix:

.github/workflows/ruby_event_store-active_record_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
RUBY_VERSION: "${{ matrix.ruby_version }}"
4040
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
4141
BUNDLE_WITHOUT: database
42+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
4243
strategy:
4344
fail-fast: false
4445
matrix:

.github/workflows/ruby_event_store-browser_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
RUBY_VERSION: "${{ matrix.ruby_version }}"
4040
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
4141
BUNDLE_WITHOUT: database
42+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
4243
strategy:
4344
fail-fast: false
4445
matrix:

.github/workflows/ruby_event_store-flipper_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
RUBY_VERSION: "${{ matrix.ruby_version }}"
3030
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
3131
BUNDLE_WITHOUT: database
32+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
3233
strategy:
3334
fail-fast: false
3435
matrix:

.github/workflows/ruby_event_store-newrelic_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
RUBY_VERSION: "${{ matrix.ruby_version }}"
3030
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
3131
BUNDLE_WITHOUT: database
32+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
3233
strategy:
3334
fail-fast: false
3435
matrix:

.github/workflows/ruby_event_store-outbox_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
RUBY_VERSION: "${{ matrix.ruby_version }}"
3030
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
3131
BUNDLE_WITHOUT: database
32+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
3233
strategy:
3334
fail-fast: false
3435
matrix:

.github/workflows/ruby_event_store-profiler_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
RUBY_VERSION: "${{ matrix.ruby_version }}"
3030
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
3131
BUNDLE_WITHOUT: database
32+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
3233
strategy:
3334
fail-fast: false
3435
matrix:

.github/workflows/ruby_event_store-protobuf_mutate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
RUBY_VERSION: "${{ matrix.ruby_version }}"
3030
BUNDLE_GEMFILE: "${{ matrix.bundle_gemfile }}"
3131
BUNDLE_WITHOUT: database
32+
BASE_REF: "${{ github.base_ref || 'HEAD~1' }}"
3233
strategy:
3334
fail-fast: false
3435
matrix:

0 commit comments

Comments
 (0)