(id: string | undefined)
| 28 | const GITHUB_LINK_PATH = '/github/link'; |
| 29 | const MAX_GITHUB_BODY_LENGTH = 4000; |
| 30 | const MAX_GITHUB_COMMENT_LENGTH = 1200; |
| 31 | |
| 32 | type GitHubRepositoryReference = { |
| 33 | id: number | null; |
| 34 | fullName: string | null; |
| 35 | }; |
| 36 | |
| 37 | function parseGitHubRepositoryFullName(id: string | undefined): string | null { |
| 38 | if (!id) return null; |
| 39 | |
| 40 | const match = id.match(/^github:([^/]+\/[^:]+)(?::|$)/); |
no outgoing calls
no test coverage detected