ci: block pull requests to main outside release branches - #293
Merged
Conversation
Aligns gpt-rag-ingestion with gpt-rag-ui, gpt-rag-orchestrator and the umbrella repository, which all guard main against non-release pull requests. The regex allows exactly release/<MAJOR>.<MINOR>.<PATCH>, as required by the release process.
Paulo Lacerda (placerda)
added a commit
that referenced
this pull request
Sep 3, 2026
* ci: run the existing unit test suite on every pull request (#292) * ci: run the existing unit test suite on every pull request * fix(deps): align opentelemetry instrumentation with azure-monitor distro The Dependabot bump in #282 pinned opentelemetry-instrumentation-httpx to 0.65b0, which azure-monitor-opentelemetry excludes (>=0.64b0,<0.65.0). The pin forced opentelemetry-sdk 1.44 and made pip backtrack to azure-monitor-opentelemetry-exporter 1.0.0b45, which imports LogData from opentelemetry.sdk._logs - a symbol removed in 1.44. Since telemetry/telemetry.py imports configure_azure_monitor at module scope and main.py imports telemetry at startup, the container failed to boot. Also install pytest-asyncio so the async tests actually execute. * ci: block pull requests to main outside release branches (#293) Aligns gpt-rag-ingestion with gpt-rag-ui, gpt-rag-orchestrator and the umbrella repository, which all guard main against non-release pull requests. The regex allows exactly release/<MAJOR>.<MINOR>.<PATCH>, as required by the release process. * chore(release): v2.7.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repository had no guard on \main, unlike \gpt-rag-ui, \gpt-rag-orchestrator\ and the umbrella repo. This ports the orchestrator's workflow verbatim, allowing only
elease/..\ to target \main.
Note: because the workflow runs on \pull_request_target, it takes effect only once merged into \main\ — the first release after this lands still needs --admin.