[TT-16977] fix: goreleaser skipped on push/tag when dep-guard is skipped #8007
probelabs / Visor: architecture
failed
Apr 15, 2026 in 40s
🚨 Check Failed
architecture check failed because fail_if condition was met.
Details
📊 Summary
- Total Issues: 2
- Error Issues: 2
🔍 Failure Condition Results
Failed Conditions
- global_fail_if: output.issues && output.issues.some(i => i.severity === 'critical' || i.severity === 'error')
- Severity: ❌ error
Issues by Category
Logic (2)
- ❌ .github/workflows/release.yml:42 - The
ifcondition is logically flawed and will not fix the issue for non-pull-request events like pushes or tags. The expressiongithub.event.pull_request.draft == falsewill evaluate tofalsewhen the event is not a pull request, asgithub.event.pull_requestwill benull. This will cause the entire condition to be false, and thegoreleaserjob will continue to be skipped on release-triggering events, which is the bug this change intends to fix. - ❌ system:0 - Global failure condition met: output.issues && output.issues.some(i => i.severity === 'critical' || i.severity === 'error')
Powered by Visor from Probelabs
💡 TIP: You can chat with Visor using /visor ask <your question>
Annotations
Check failure on line 45 in .github/workflows/release.yml
probelabs / Visor: architecture
logic Issue
The `if` condition is logically flawed and will not fix the issue for non-pull-request events like pushes or tags. The expression `github.event.pull_request.draft == false` will evaluate to `false` when the event is not a pull request, as `github.event.pull_request` will be `null`. This will cause the entire condition to be false, and the `goreleaser` job will continue to be skipped on release-triggering events, which is the bug this change intends to fix.
Raw output
The condition should be modified to explicitly handle cases where the event is not a pull request. It should allow the job to run for non-PR events, or for PRs that are not drafts.
Loading