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

   ## Summary
   
   The `detect-dependencies` action (used to detect which components are 
affected by parent/pom.xml property changes, typically from Dependabot PRs) was 
silently failing because it used `git diff main...HEAD` which requires the 
merge base — unavailable in the CI's shallow clone (`fetch-depth: 1`).
   
   This caused the script to always exit with "parent/pom.xml not changed, 
nothing to do", even when parent/pom.xml was the only changed file (e.g. 
[#22214](https://github.com/apache/camel/pull/22214)).
   
   ### Changes
   
   - **`detect-test.sh`**: Replace `git diff`/`git fetch` with GitHub API diff 
endpoint (`GET /repos/{repo}/pulls/{id}` with `Accept: 
application/vnd.github.v3.diff`), consistent with how `incremental-build.sh` 
works. Extract the `parent/pom.xml` section from the full PR diff using awk.
   - **`action.yaml`**: Replace `base-ref` input with `pr-id` (required) and 
`github-repo` (optional, defaults to `apache/camel`). Update script invocation.
   - **`pr-build-main.yml`**: Pass `pr-id` and `github-repo` to the action.


-- 
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