Changeset View
Changeset View
Standalone View
Standalone View
cli/diff-changelog.php
| Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | if( $diff_ids ) { | ||||
| foreach( $diffusion_commit_search['data'] as $diffusion_commit_data ) { | foreach( $diffusion_commit_search['data'] as $diffusion_commit_data ) { | ||||
| $diffusion_commit_phids[] = $diffusion_commit_data['phid']; | $diffusion_commit_phids[] = $diffusion_commit_data['phid']; | ||||
| } | } | ||||
| // Find Differential revisions from git commits | // Find Differential revisions from git commits | ||||
| // Start from commit hash and get Diff PHIDs | // Start from commit hash and get Diff PHIDs | ||||
| // https://we.phorge.it/conduit/method/edge.search/ | // https://we.phorge.it/conduit/method/edge.search/ | ||||
| $commit_revisions = $client->callMethodSynchronous( 'edge.search', [ | $commit_revisions = $client->callMethodSynchronous( 'edge.search', [ | ||||
| 'sourcePHIDs' => $git_commits_after_last_tag, | 'sourcePHIDs' => $diffusion_commit_phids, | ||||
| 'types' => [ | 'types' => [ | ||||
| 'commit.revision', | 'commit.revision', | ||||
| ], | ], | ||||
| ] ); | ] ); | ||||
| foreach( $commit_revisions['data'] as $commit_revision ) { | foreach( $commit_revisions['data'] as $commit_revision ) { | ||||
| $diff_phid = $commit_revision['destinationPHID']; | $diff_phid = $commit_revision['destinationPHID']; | ||||
| $diff_phids[] = $diff_phid; | $diff_phids[] = $diff_phid; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines | |||||
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register