Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Jun 23, 2024

  • Use SemanticVersioning to check about new version
  • Allow Prerelease

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 23, 2024

📝 Walkthrough
Walkthrough

Walkthrough

The project added the SemanticVersioning package version 3.0.0. The Updater class was updated to use SemanticVersioning.Version.Parse instead of Version.Parse for version parsing. Code formatting improvements were made without changing logic or control flow.

Changes

Files Summary
Flow.Launcher.Core/Flow.Launcher.Core.csproj Added SemanticVersioning package reference version 3.0.0.
Flow.Launcher.Core/Updater.cs Replaced Version.Parse with SemanticVersioning.Version.Parse; reformatted code for readability without logic changes.

Suggested reviewers

  • jjw24

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 177da1a and 1cce95e.

📒 Files selected for processing (2)
  • Flow.Launcher.Core/Flow.Launcher.Core.csproj (1 hunks)
  • Flow.Launcher.Core/Updater.cs (6 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • Flow.Launcher.Core/Flow.Launcher.Core.csproj
  • Flow.Launcher.Core/Updater.cs
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added this to the 1.19.0 milestone Jun 23, 2024
@github-actions

This comment has been minimized.

@gitstream-cm
Copy link

gitstream-cm bot commented Jun 23, 2024

🥷 Code experts: Jack251970

Jack251970 has most 👩‍💻 activity in the files.
Jack251970, jjw24 have most 🧠 knowledge in the files.

See details

Flow.Launcher.Core/Flow.Launcher.Core.csproj

Activity based on git-commit:

Jack251970
JUL
JUN
MAY
APR
MAR
FEB

Knowledge based on git-blame:
jjw24: 14%

Flow.Launcher.Core/Updater.cs

Activity based on git-commit:

Jack251970
JUL
JUN
MAY
APR 35 additions & 21 deletions
MAR
FEB 22 additions & 22 deletions

Knowledge based on git-blame:
Jack251970: 30%
jjw24: 9%

✨ Comment /gs review for LinearB AI review. Learn how to automate it here.

@gitstream-cm
Copy link

gitstream-cm bot commented Jun 23, 2024

This PR is 57.14285714285714% new code.

@gitstream-cm
Copy link

gitstream-cm bot commented Jun 23, 2024

Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX.

@prlabeler prlabeler bot added Code Refactor enhancement New feature or request labels Jun 23, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

@taooceros taooceros removed this from the 1.19.0 milestone Jun 26, 2024
@taooceros taooceros added the Debug Only Only appears on Debug label Jun 26, 2024
@Jack251970 Jack251970 mentioned this pull request Mar 14, 2025
7 tasks
@github-actions

This comment has been minimized.

Copilot

This comment was marked as outdated.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
Flow.Launcher.Core/Updater.cs (1)

138-138: Prerelease support implemented correctly, but optimization opportunity remains.

The removal of prerelease filtering correctly implements the PR objective to "Allow Prerelease". However, the optimization concern from previous reviews still applies.

The current implementation fetches all releases and sorts them, which could be optimized by using the GitHub API's ability to fetch releases in order or fetch only the latest release directly. This would reduce data transfer and processing time.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dd29b4a and 177da1a.

📒 Files selected for processing (2)
  • Flow.Launcher.Core/Flow.Launcher.Core.csproj (1 hunks)
  • Flow.Launcher.Core/Updater.cs (2 hunks)
✅ Files skipped from review due to trivial changes (1)
  • Flow.Launcher.Core/Flow.Launcher.Core.csproj
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: taooceros
PR: Flow-Launcher/Flow.Launcher#2616
File: Flow.Launcher/Flow.Launcher.csproj:7-7
Timestamp: 2024-10-08T15:52:58.573Z
Learning: In the Flow Launcher project, the version number in the `Flow.Launcher.csproj` file is dynamically updated during the CI/CD process.
Flow.Launcher.Core/Updater.cs (3)
Learnt from: taooceros
PR: Flow-Launcher/Flow.Launcher#2616
File: Flow.Launcher/Flow.Launcher.csproj:7-7
Timestamp: 2024-10-08T15:52:58.573Z
Learning: In the Flow Launcher project, the version number in the `Flow.Launcher.csproj` file is dynamically updated during the CI/CD process.
Learnt from: Jack251970
PR: Flow-Launcher/Flow.Launcher#3791
File: Flow.Launcher.Core/Plugin/PluginManager.cs:293-295
Timestamp: 2025-07-01T05:46:13.251Z
Learning: In Flow.Launcher.Core/Plugin/PluginManager.cs, when checking if a plugin is modified within the PluginManager class itself, prefer using the internal static PluginModified(string id) method directly rather than going through API.PluginModified() for better performance and architectural design.
Learnt from: Jack251970
PR: Flow-Launcher/Flow.Launcher#3572
File: Flow.Launcher/App.xaml.cs:214-216
Timestamp: 2025-07-06T12:21:37.947Z
Learning: In Flow Launcher, the UpdatePluginManifestAsync method in PluginsManifest.cs already has comprehensive internal try-catch handling that logs exceptions and returns false on failure rather than throwing, making external try-catch wrappers unnecessary.
🧬 Code Graph Analysis (1)
Flow.Launcher.Core/Updater.cs (1)
Flow.Launcher.Infrastructure/Constant.cs (1)
  • Constant (7-59)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: gitStream.cm
  • GitHub Check: gitStream.cm
  • GitHub Check: build

Jack251970
Jack251970 previously approved these changes Jul 16, 2025
@taooceros
Copy link
Member Author

Actually I think we don't really need to allow pre-release as that's in a separate repository. I will remove that.

@github-actions
Copy link

@check-spelling-bot Report

🔴 Please review

See the 📂 files view, the 📜action log, or 📝 job summary for details.

❌ Errors and Warnings Count
❌ forbidden-pattern 13
⚠️ non-alpha-in-dictionary 2

See ❌ Event descriptions for more information.

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

@taooceros taooceros requested review from Jack251970 and Copilot July 16, 2025 18:56
Copy link
Contributor

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 updates the Flow Launcher updater to use semantic versioning instead of basic Version parsing and includes code formatting improvements. The change allows for better handling of prerelease versions and more robust version comparison.

  • Replaces System.Version with SemanticVersioning.Version for version parsing and comparison
  • Adds the SemanticVersioning NuGet package dependency
  • Applies code formatting improvements to multiline statements and object initializers

Reviewed Changes

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

File Description
Flow.Launcher.Core/Updater.cs Updates version parsing logic to use SemanticVersioning library and applies code formatting
Flow.Launcher.Core/Flow.Launcher.Core.csproj Adds SemanticVersioning NuGet package reference

@taooceros taooceros changed the title velopack prepare Semantic Version Jul 16, 2025
@Jack251970 Jack251970 merged commit b924a79 into dev Jul 17, 2025
18 checks passed
@Jack251970 Jack251970 deleted the prerelease branch July 17, 2025 00:46
@Jack251970 Jack251970 added this to the 2.0.0 milestone Jul 17, 2025
@jjw24 jjw24 added bug Something isn't working and removed enhancement New feature or request Debug Only Only appears on Debug no-pr-activity Code Refactor labels Jul 17, 2025
@jjw24 jjw24 changed the title Semantic Version Check version using SemanticVersion library Jul 17, 2025
@jjw24 jjw24 changed the title Check version using SemanticVersion library Check version using SemanticVersioning library Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants