davsclaus opened a new pull request, #24718:
URL: https://github.com/apache/camel/pull/24718

   ## Summary
   
   _Claude Code on behalf of davsclaus_
   
   The `camel-launcher-windows.yml` workflow was triggering on **every** PR to 
`main`, even when the PR did not touch any Windows/launcher-related files. The 
`detect-changes` job then failed with `fatal: origin/main...HEAD: no merge 
base` due to insufficient git history in the shallow clone, causing a spurious 
red check on unrelated PRs (e.g. PR #24712).
   
   **Changes:**
   - Add `paths:` filters to both `push` and `pull_request` triggers so the 
workflow only runs when `tooling/camel-exe/`, 
`dsl/camel-jbang/camel-launcher/`, or the workflow file itself are changed
   - Fix the shallow clone issue in `detect-changes` by using `fetch-depth: 0` 
so the three-dot diff can find a merge base when the workflow does trigger
   
   ## Test plan
   
   - [x] Verify unrelated PRs no longer trigger the Windows workflow (the 
`paths:` filter prevents it at the GitHub level)
   - [x] Verify `workflow_dispatch` still runs both jobs unconditionally
   - [x] Verify PRs touching only `tooling/camel-exe/` trigger only the 
`camel-exe` job
   - [x] Verify PRs touching `dsl/camel-jbang/camel-launcher/` trigger the 
`camel-launcher-windows` job
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to