Skip to content

Commit

Permalink
Swap stderr for stdout (#54720)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan committed Sep 22, 2023
1 parent 7a6419e commit 998a547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cherry-pick.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { spawnSync } from 'node:child_process';
const LABEL = process.argv[ 2 ] || 'Backport to WP Beta/RC';
const BRANCH = getCurrentBranch();
const GITHUB_CLI_AVAILABLE = spawnSync( 'gh', [ 'auth', 'status' ] )
?.stderr?.toString()
?.stdout?.toString()
.includes( '✓ Logged in to github.com as' );

const AUTO_PROPAGATE_RESULTS_TO_GITHUB = GITHUB_CLI_AVAILABLE;
Expand Down

0 comments on commit 998a547

Please sign in to comment.