Skip to content

feat(rust-plugins): 🎸 add changeset bot#128

Merged
Maidang1 merged 1 commit intomainfrom
feat/changeset-bot
Apr 10, 2025
Merged

feat(rust-plugins): 🎸 add changeset bot#128
Maidang1 merged 1 commit intomainfrom
feat/changeset-bot

Conversation

@Maidang1
Copy link
Copy Markdown
Contributor

@Maidang1 Maidang1 commented Apr 10, 2025

Summary by CodeRabbit

  • Chores
    • Introduced a patch update for the @farmfe/plugin-virtual package to ensure accurate versioning.
    • Enhanced release workflows for both JavaScript and Rust plugins by streamlining version management and the publishing process.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2025

Walkthrough

A new changeset file was added to update the version for the package "@farmfe/plugin-virtual". Additionally, the GitHub Actions release workflows for JavaScript and Rust plugins were modified. The updates remove the previous publishing steps and integrate a new step named "Create Release Pull Request or Publish to npm", which leverages the changesets/action@v1 and introduces necessary environment variables (GITHUB_TOKEN and NPM_TOKEN).

Changes

File(s) Change Summary
.changeset/thin-bananas-draw.md Added a file specifying a patch that updates the version of the package "@farmfe/plugin-virtual".
.github/workflows/release-js-plugins.yml
.github/workflows/release-rust-plugins.yml
Updated the release workflows by replacing the original publish steps with a new "Create Release Pull Request or Publish to npm" step using changesets/action@v1 and adding environment variables.
rust-plugins/virtual/package.json Updated the version number from "0.0.10" to "0.0.11" for the @farmfe/plugin-virtual package.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant GH as GitHub Actions Runner
    participant CS as changesets/action@v1
    participant Pub as NPM/PNPM

    Dev->>GH: Push commit to repo
    GH->>CS: Execute release workflow step
    CS->>Pub: Run publish command with tokens
    Pub-->>CS: Confirm publish
    CS-->>GH: Return release status
    GH-->>Dev: Notify release complete
Loading

Suggested reviewers

  • wre232114
  • CCherry07

Poem

I'm a rabbit hopping through the code,
With changes crisp in every mode.
New steps and tokens pave the way,
Making releases bright as day.
A gentle thump for progress true—
Happy hops to code anew! 🐇✨


📜 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 522fffd and 649068d.

📒 Files selected for processing (4)
  • .changeset/thin-bananas-draw.md (1 hunks)
  • .github/workflows/release-js-plugins.yml (1 hunks)
  • .github/workflows/release-rust-plugins.yml (1 hunks)
  • rust-plugins/virtual/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • rust-plugins/virtual/package.json
🚧 Files skipped from review as they are similar to previous changes (3)
  • .changeset/thin-bananas-draw.md
  • .github/workflows/release-js-plugins.yml
  • .github/workflows/release-rust-plugins.yml
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: call-rust-build / Build and Upload Artifacts - darwin-x64
  • GitHub Check: call-rust-build / Build and Upload Artifacts - linux-x64-gnu
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-arm64-msvc
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-ia32-msvc
  • GitHub Check: call-rust-build / Build and Upload Artifacts - linux-x64-musl
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-x64-msvc

🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @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.

Copy link
Copy Markdown

@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: 0

🧹 Nitpick comments (1)
.changeset/thin-bananas-draw.md (1)

1-6: New Changeset File for Virtual Plugin Version Update
This changeset file correctly specifies a patch update for "@farmfe/plugin-virtual", which is consistent with the new release process. For clarity in your changelogs and for future maintainers, consider adding a more descriptive summary of what the patch entails if applicable.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 65e0ad8 and 522fffd.

📒 Files selected for processing (3)
  • .changeset/thin-bananas-draw.md (1 hunks)
  • .github/workflows/release-js-plugins.yml (1 hunks)
  • .github/workflows/release-rust-plugins.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-arm64-msvc
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-x64-msvc
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-ia32-msvc
🔇 Additional comments (2)
.github/workflows/release-rust-plugins.yml (1)

55-62: Integrate Changesets for Rust Plugin Releases
The new step using changesets/action@v1 is well integrated. It standardizes the release process by handling versioning and changelog generation. Please ensure that the publish command

npm config set access public && pnpm --filter "{rust-plugins}[HEAD~1]" publish --no-git-checks

remains compatible with your project setup and that the secrets (GITHUB_TOKEN and NPM_TOKEN) are correctly configured in your repository settings.

.github/workflows/release-js-plugins.yml (1)

44-52: Integrate Changesets for JS Plugin Releases
The replacement of the old publishing step with a changesets-driven step is clear and aligns with the Rust workflow changes. The new configuration sets the publish command appropriately and provides the required environment variables. Double-check that the publish filter "{js-plugins}[HEAD~1]" appropriately targets your packages.

@Maidang1 Maidang1 force-pushed the feat/changeset-bot branch from 522fffd to 649068d Compare April 10, 2025 05:41
@Maidang1 Maidang1 merged commit 527f0eb into main Apr 10, 2025
11 checks passed
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