On Fri, Mar 16, 2018 at 11:21 AM, Steven F <[email protected]> wrote: > GHBS's > PullRequest event returns a null revision in case of a PR merge
I suppose you are referring to https://github.com/jenkinsci/github-branch-source-plugin/blob/245300dd6c2e1667b11155e2772b30c5f435f0ca/src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestGHEventSubscriber.java#L325-L328 So far the only case I can find where any caller pays attention to the values in the map returned by this API is https://github.com/jenkinsci/branch-api-plugin/blob/dcc0d23a0870058c6138362d3aa017c0d56effc2/src/main/java/jenkins/branch/MultiBranchProject.java#L1549-L1569 which seems to be a performance optimization, to avoid an extra call to `SCMSource.retrieve` to look up the current head revision. Stephen Connolly wrote most of this code and would be best placed to answer questions like this. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr14%2Bc5J4nAnciMt59a52eDz3qO8%3DLALNf5APxZTZ%3D5SdQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
