Skip to content

Commit e0e1e6f

Browse files
committed
ci: extend merge freeze to '[chore] Update core dependencies' PRs on contrib
Signed-off-by: sAchin-680 <[email protected]>
1 parent 97130f0 commit e0e1e6f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/scripts/check-merge-freeze.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@
33
# Copyright The OpenTelemetry Authors
44
# SPDX-License-Identifier: Apache-2.0
55

6+
# Check for [chore] Prepare release PRs in core repo
67
BLOCKERS=$( gh pr list -A opentelemetrybot -S "[chore] Prepare release" --json url -q '.[].url' -R "${REPO}" )
8+
9+
# Check for [chore] Update core dependencies PRs in opentelemetry-collector-contrib
10+
CONTRIB_REPO="open-telemetry/opentelemetry-collector-contrib"
11+
CONTRIB_BLOCKERS=$( gh pr list -A opentelemetrybot -S "[chore] Update core dependencies" --json url -q '.[].url' -R "${CONTRIB_REPO}" )
12+
13+
# Combine both blockers
14+
BLOCKERS="${BLOCKERS}${BLOCKERS:+ }${CONTRIB_BLOCKERS}"
15+
716
if [ "${BLOCKERS}" != "" ]; then
8-
echo "Merging in main is frozen, as there are open \"Prepare release\" PRs: ${BLOCKERS}"
17+
echo "Merging in main is frozen, as there are open release/update PRs: ${BLOCKERS}"
918
echo "If you believe this is no longer true, re-run this job to unblock your PR."
1019
exit 1
1120
fi

0 commit comments

Comments
 (0)