MCPcopy Index your code
hub / github.com/continuedev/continue / isPullRequestCommand

Function isPullRequestCommand

extensions/cli/src/telemetry/utils.ts:105–113  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

103 * Check if a command is a pull request creation command
104 */
105export function isPullRequestCommand(command: string): boolean {
106 const trimmed = command.trim().toLowerCase();
107 return (
108 trimmed.includes("gh pr create") ||
109 (trimmed.includes("git push") && trimmed.includes("pull-request")) ||
110 trimmed.includes("hub pull-request") ||
111 trimmed.includes("gitlab mr create")
112 );
113}
114
115/**
116 * Get file type from extension for metrics

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected