Skip to content

Commit edd19d3

Browse files
authored
Merge pull request #28029 from redpanda-data/DEVPROD-3436-gha-merge-queue
gha: trigger workflows when PR is added to merge queue
2 parents 53d6417 + dc346a4 commit edd19d3

14 files changed

+67
-13
lines changed

.github/workflows/buf.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# ---------------------------------------------------------------------------
33
# Buf CI
44
# ---------------------------------------------------------------------------
5-
# 1. validate -> lint + breaking checks (runs on both push & pull_request)
5+
# 1. validate -> lint + breaking checks (runs on push, merge_group, & pull_request)
66
# 2. push-to-registry -> push to Buf registry only (runs after validation passes)
77
# 3. archive-label -> archive label in registry when branch/tag deleted (with error handling)
88
# ---------------------------------------------------------------------------
@@ -29,16 +29,18 @@ on:
2929
- '**/buf.lock'
3030
- '.github/workflows/buf.yml'
3131
delete:
32+
merge_group:
33+
types: [checks_requested]
3234
permissions:
3335
contents: read # checkout + annotations
3436
pull-requests: write # inline lint / breaking comments
3537
id-token: write # OIDC to assume AWS role (push job)
3638
# ===========================================================================
37-
# Job: validate (both push and pull_request - comprehensive validation)
39+
# Job: validate (push, merge_group, and pull_request - comprehensive validation)
3840
# ===========================================================================
3941
jobs:
4042
validate:
41-
if: github.event_name == 'push' || github.event_name == 'pull_request'
43+
if: github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'pull_request'
4244
runs-on: ubuntu-latest
4345
steps:
4446
- uses: actions/checkout@v4
@@ -48,7 +50,7 @@ jobs:
4850
paths: proto
4951
lint: true
5052
format: false # We use clang-tidy
51-
breaking: false # flip to true when we have a release
53+
breaking: false # flip to true when we have a release
5254
push: false # Only validate, don't push to registry
5355
# ===========================================================================
5456
# Job: push-to-registry (push events only - registry operations only)

.github/workflows/dispatch-api-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Dispatch Admin API docs update on latest release
23

34
on:

.github/workflows/lint-bazel-dependency-graph.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
paths:
1111
- 'BUILD'
1212
- '.github/workflows/lint-bazel-dependency-graph.yml'
13+
merge_group:
14+
types: [checks_requested]
1315
jobs:
1416
lint:
1517
name: Lint bazel dependency graph

.github/workflows/lint-bazel-pkg-tool.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
paths:
1313
- '.github/workflows/lint-bazel-pkg-tool.yml'
1414
- 'bazel/packaging/tool.go'
15+
merge_group:
16+
types: [checks_requested]
1517
jobs:
1618
golangci-lint:
1719
runs-on: ubuntu-24.04
@@ -21,7 +23,7 @@ jobs:
2123
with:
2224
go-version: stable
2325
cache: false
24-
- uses: golangci/golangci-lint-action@v6
26+
- uses: golangci/golangci-lint-action@v8
2527
with:
2628
version: latest
2729
args: --timeout 10m --verbose tool.go

.github/workflows/lint-cpp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
- '**.proto'
2121
- '**.java'
2222
- '.github/workflows/lint-cpp.yml'
23+
merge_group:
24+
types: [checks_requested]
2325
jobs:
2426
cpp:
2527
name: Lint files with clang-format

.github/workflows/lint-golang.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
paths:
1313
- 'src/go/**'
1414
- '.github/workflows/lint-golang.yml'
15+
merge_group:
16+
types: [checks_requested]
1517
jobs:
1618
go:
1719
name: Lint go files

.github/workflows/lint-python.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
paths:
1313
- '**.py'
1414
- '.github/workflows/lint-python.yml'
15+
merge_group:
16+
types: [checks_requested]
1517
jobs:
1618
py:
1719
name: Lint python files

.github/workflows/lint-sh.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
- '.buildkite/hooks/*'
2121
- 'tests/docker/ducktape-deps/*'
2222
- 'tools/*'
23+
merge_group:
24+
types: [checks_requested]
2325
jobs:
2426
sh:
2527
name: Lint shell scripts

.github/workflows/lint-yaml.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
paths:
1111
- '.yamllint'
1212
- '.github/workflows/*.yml'
13+
merge_group:
14+
types: [checks_requested]
1315
jobs:
1416
yamllint:
1517
runs-on: ubuntu-latest

.github/workflows/p.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
paths:
1313
- 'tests/models/**'
1414
- '.github/workflows/p.yml'
15+
merge_group:
16+
types: [checks_requested]
1517
jobs:
1618
cpp:
1719
name: Compile and check P models

0 commit comments

Comments
 (0)