fix: add master and main branches as a fallback to base ref when the workflow triggered out of PRs scope#107
Conversation
…workflow triggered out of PRs scope
|
This pull request addresses a bug in the The fix introduces a robust fallback mechanism. If Files Changed Analysis
Architecture & Impact Assessment
Scope Discovery & Context Expansion
Metadata
Powered by Visor from Probelabs Last updated: 2026-04-06T09:41:23.389Z | Triggered by: pr_updated | Commit: f660381 💡 TIP: You can chat with Visor using |
✅ Security Check PassedNo security issues found – changes LGTM. ✅ Architecture Check PassedNo architecture issues found – changes LGTM. ✅ Performance Check PassedNo performance issues found – changes LGTM. Quality Issues (1)
Powered by Visor from Probelabs Last updated: 2026-04-06T09:41:13.700Z | Triggered by: pr_updated | Commit: f660381 💡 TIP: You can chat with Visor using |
|
/visor fallback logic is fixed with github.repository.default_branch context variable |
Issue
When we run the workflow not on PRs the BASE_REF env variable becomes empty and fails the git fetch.
Example:
https://github.com/TykTechnologies/tyk-analytics-ui/actions/runs/23936302416/job/69813293630
By adding fallback we will resolve it without changing other repos where the deps workflow is used