(command: string)
| 103 | * Check if a command is a pull request creation command |
| 104 | */ |
| 105 | export 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 |