Repository navigation
fix(cli): correct GitHub URL branch parsing and file extension detection - #2221
messiawrq-design wants to merge 1 commit into
Conversation
Fixes asyncapi#1940. 1. Updated `githubWebPattern` in `validation.service.ts` from `([^\/]+)` to `(.+?)` for the branch capture group. This correctly allows URLs with slash-based branch names (e.g., `feature/new-validation`) to be parsed instead of throwing a 404. 2. Updated extension extraction in `SpecificationFile.ts` to use the last element of the split array (`parts[parts.length - 1]`), which gracefully supports multi-dot filenames like `my.asyncapi.yaml` and files with no extensions. Bounty Wallet: 6sF8p22Gg83NKTJ6dvya7Srv4USCniZnP47DwQwK7Mtp (Solana) / Algora
|
|
|
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |




Fixes #1940.
Bug fixes included:
githubWebPatterninvalidation.service.tsfrom([^\/]+)to(.+?)for the branch capture group. This correctly allows URLs with slash-based branch names (e.g.,feature/new-validation) to be parsed instead of throwing a 404.name.split('.')[1]extraction inSpecificationFile.tsto intelligently use the last element of the split array (parts[parts.length - 1]). This gracefully handles multi-dot filenames likemy.asyncapi.yamland single-word files.Bounty Wallet: 6sF8p22Gg83NKTJ6dvya7Srv4USCniZnP47DwQwK7Mtp (Solana) / Algora