Skip to content

Commit 7718350

Browse files
committed
print PR URL
1 parent 240e7ae commit 7718350

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/commands/fix/coana-fix.mts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,9 @@ import { joinAnd } from '@socketsecurity/lib/arrays'
44
import { debug, debugDir } from '@socketsecurity/lib/debug'
55
import { logger } from '@socketsecurity/lib/logger'
66
import { pluralize } from '@socketsecurity/lib/words'
7-
8-
import {
9-
checkCiEnvVars,
10-
getCiEnvInstructions,
11-
getFixEnv,
12-
} from './env-helpers.mts'
13-
import { getSocketFixBranchName, getSocketFixCommitMessage } from './git.mts'
14-
import { getSocketFixPrs, openSocketFixPr } from './pull-request.mts'
157
import { FLAG_DRY_RUN } from '../../constants/cli.mts'
168
import { GQL_PR_STATE_OPEN } from '../../constants/github.mts'
9+
import type { CResult } from '../../types.mts'
1710
import { spawnCoanaDlx } from '../../utils/dlx/spawn.mjs'
1811
import { getErrorCause } from '../../utils/error/errors.mjs'
1912
import { getPackageFilesForScan } from '../../utils/fs/path-resolve.mjs'
@@ -36,9 +29,14 @@ import { cmdFlagValueToArray } from '../../utils/process/cmd.mts'
3629
import { handleApiCall } from '../../utils/socket/api.mjs'
3730
import { setupSdk } from '../../utils/socket/sdk.mjs'
3831
import { fetchSupportedScanFileNames } from '../scan/fetch-supported-scan-file-names.mts'
39-
32+
import {
33+
checkCiEnvVars,
34+
getCiEnvInstructions,
35+
getFixEnv,
36+
} from './env-helpers.mts'
37+
import { getSocketFixBranchName, getSocketFixCommitMessage } from './git.mts'
38+
import { getSocketFixPrs, openSocketFixPr } from './pull-request.mts'
4039
import type { FixConfig } from './types.mts'
41-
import type { CResult } from '../../types.mts'
4240

4341
export async function coanaFix(
4442
fixConfig: FixConfig,
@@ -392,6 +390,7 @@ export async function coanaFix(
392390
const prRef = `PR #${data.number}`
393391

394392
logger.success(`Opened ${prRef} for ${ghsaId}.`)
393+
logger.info(`PR URL: ${data.html_url}`)
395394

396395
if (autopilot) {
397396
logger.indent()

0 commit comments

Comments
 (0)