Copilot commented on code in PR #330:
URL: https://github.com/apache/sedona-db/pull/330#discussion_r2553321628


##########
ci/scripts/set_dev_version.py:
##########
@@ -79,12 +79,20 @@ def main():
     _, last_dev_tag = find_last_dev_tag()
     dev_distance = len(find_commits_since(last_dev_tag))
 
+    # Update workspace package version
     file_regex_replace(
         r'\nversion = "([0-9]+\.[0-9]+\.[0-9]+)"',
         f'\nversion = "\\1-alpha{dev_distance}"',
         src_path("Cargo.toml"),
     )
 
+    # Update workspace dependencies versions to match the prerelease version
+    file_regex_replace(
+        r'(sedona-[a-z\-]+) = \{ version = "([0-9]+\.[0-9]+\.[0-9]+)", path',

Review Comment:
   [nitpick] The regex pattern `[a-z\-]+` allows hyphens anywhere in the 
package name suffix, but the escape `\-` is unnecessary inside a character 
class. Consider simplifying to `[a-z-]+` for better readability.
   ```suggestion
           r'(sedona-[a-z-]+) = \{ version = "([0-9]+\.[0-9]+\.[0-9]+)", path',
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to