Skip to content

Conversation

@goransle
Copy link
Member

No description provided.

@goransle goransle requested a review from Copilot October 22, 2025 11:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for handling query parameters in URLs by stripping them before processing. The change ensures that URLs with cache-busting or other query strings (e.g., ?cache=123) are correctly parsed to extract branch names, file paths, and types.

Key changes:

  • Added a stripQuery helper function to remove query parameters from URLs
  • Updated getBranch, getFile, and getType functions to strip query parameters before processing
  • Added test coverage for query string handling in all three affected functions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
app/interpreter.js Added stripQuery utility function and integrated it into getBranch, getFile, and getType functions to handle URLs with query parameters
test/interpreter.js Added test cases for getBranch, getFile, and getType to verify query string handling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants