Page MenuHomePhabricator

Expose "branched from" information in conduit differential API
Closed, DuplicatePublic

Description

Our team has a workflow where every branch needs to be handled by our CI system (Jenkins) in a different way, and our branch names expose this. For example:

Branch "V1.0" needs to be built with version 1.0 of our SDK. Branch "V2.0" needs to be built with version 2.0 of our SDK. Lots of our branches and SDKs are very similar, differing only by a couple commits, but its crucial that our CI system can pick up on these differences. Currently our Jenkins system receives a harbormaster API call, and uses "git branch -r --contains <COMMIT_HASH>" to determine what branch arc diff was run against. This works in cases where branches are very different, but with branches that are similar, we sometimes will get many branches back. Our CI system must assume that all branches need to be built, even though the change is only targeted for one.

Showing the "branched from: <BRANCHNAME>" (T3462) is exactly the information our CI system needs, but as far as I can tell it is not exposed in Conduit. Could this be exposed in the differential.querydiffs payload?