Repository navigation
feat(ci): implement B+ hybrid mode for transport import checker [OMN-651] #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jonahgabriel
merged 3 commits into
main
from
jonah/omn-651-evaluate-using-changed-files-mode-in-ci-for-transport-import
Dec 10, 2025
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
4e15c48
feat(ci): implement B+ hybrid mode for transport import checker [OMN-…
jonahgabriel 9e470a8
fix(ci): address PR #147 review feedback for transport import checker
jonahgabriel 99f5015
fix(ci): complete PR review feedback for transport import checker [OM…
jonahgabriel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle the
workflow_dispatchevent case.The conditional logic only handles
pull_requestandpushevents, leaving bothRUN_CHANGED_FILESandRUN_FULL_SCANas"false"if triggered viaworkflow_dispatch. This causes the transport check to silently pass without running any validation, which defeats the safety mechanism.Since the workflow is configured to accept
workflow_dispatchtriggers (line 8), this edge case must be handled.Recommended fix: Default to full scan for unexpected event types (most defensive), or explicitly skip the step:
if [[ "${{ github.event_name }}" == "pull_request" ]]; then if [[ "${{ github.base_ref }}" == "main" || "${{ github.base_ref }}" == "develop" ]]; then RUN_FULL_SCAN="true" echo "=== Transport Import Check (Full Scan - PR to ${{ github.base_ref }}) ===" else RUN_CHANGED_FILES="true" echo "=== Transport Import Check (Changed Files - PR to ${{ github.base_ref }}) ===" fi elif [[ "${{ github.event_name }}" == "push" ]]; then if [[ "${{ github.ref }}" == "refs/heads/main" || "${{ github.ref }}" == "refs/heads/develop" ]]; then RUN_FULL_SCAN="true" echo "=== Transport Import Check (Full Scan - Push to ${GITHUB_REF#refs/heads/}) ===" else RUN_CHANGED_FILES="true" echo "=== Transport Import Check (Changed Files - Push to ${GITHUB_REF#refs/heads/}) ===" fi +else + # Default: full scan for workflow_dispatch or other event types (defensive default) + RUN_FULL_SCAN="true" + echo "=== Transport Import Check (Full Scan - Manual workflow dispatch) ===" fi📝 Committable suggestion
🤖 Prompt for AI Agents