Closed akorchyn closed 3 months ago
@race-of-sloths inclua
The recent changes encompass integrating the shared-types
module across the workspace, enhancing data management, and fostering modularity. Key updates involve adding shared-types
as a dependency, refining import statements, and aligning function parameters and return types with shared data structures. This consolidation streamlines the codebase, boosts maintainability, and ensures consistent data handling throughout the project.
Files | Change Summary |
---|---|
Cargo.toml , contract/Cargo.toml , server/Cargo.toml |
Added shared-types as a workspace dependency. |
contract/src/lib.rs , contract/src/types.rs , contract/src/views.rs |
Imported types from shared_types , refactored functions to use shared types, and updated logic accordingly. |
server/src/api/github/mod.rs |
Updated edit_comment function to include an additional parameter in the instrument macro. |
server/src/api/github/types.rs |
Added conversion implementation from PR to PrMetadata . |
server/src/api/near.rs |
Refactored functions to use shared_types , updated logic for unfinalized_prs , unfinalized_prs_all , and send_finalize . |
server/src/commands/actions/finalize.rs |
Introduced PullRequestFinalize struct with methods for finalizing pull requests. |
server/src/commands/actions/merge.rs |
Introduced PullRequestMerge struct with methods for handling pull request merges. |
server/src/commands/actions/mod.rs |
Re-exported modules for finalizing, merging, and handling stale actions. |
server/src/commands/actions/stale.rs |
Updated PullRequestStale struct's execute method to check if PR is merged before staling. |
server/src/commands/common.rs |
Refactored reply and reply_with_error functions to use PrMetadata struct. |
server/src/commands/exclude.rs |
Modified reply method to use pr_metadata object instead of individual fields. |
server/src/commands/mod.rs |
Reorganized command handling logic, added new commands, and updated the Event enum. |
server/src/commands/pause.rs |
Added maintainer check for pausing the bot and updated context.reply parameters. |
server/src/commands/score.rs |
Simplified error handling by using pr_metadata object in reply_with_error calls. |
server/src/commands/start.rs |
Added check for already merged PRs before processing further actions. |
server/src/commands/unknown.rs |
Added methods for handling unknown commands in a PR context. |
server/src/lib.rs |
Removed messages module. |
server/src/main.rs |
Restructured command module, introduced new actions for finalizing and merging pull requests. |
shared-types/Cargo.toml |
Updated to include workspace-related configurations and dependencies. |
shared-types/src/lib.rs |
Introduced data structures and methods for managing PR information and user data. |
π° In the land of code, where changes bloom,
Shared types now glow, dispelling the gloom.
PRs and scores, all unified and bright,
Bringing clarity and ease, in the soft moonlight.
With structs and methods, our tasks align,
A harmonious workspace, truly divine.
Hopping ahead, with a joyous cheer,
CodeRabbit leads, innovation clear. π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Hey there! π Your PR is now part of the Race of Sloths. Thanks for contributing! π
Current Status:
@race-of-sloths score [1,2,3,5,8,13]
.We'll keep this status updated as things progress. Thanks again for your awesome contribution! π
@race-of-sloths scor 5
Hey, I'm sorry, but I can't process that: Unexpected command
@race-of-sloths score 12
Hey, I'm sorry, but I can't process that: Score should be a fibonacci number: 1, 2, 3, 5, 8, or 13.
@race-of-sloths score 13
Hey, I'm sorry, but I can't process that: You can't score your own PR.
The PR has been merged, but it was not scored. The score process will be closed after 24 hours automatically.
π Hooray! The PR has been finalized. Thank you for your epic contribution! The scoring process is now officially closed. πβ¨
Summary by CodeRabbit
New Features
UnknownCommand
for unrecognized commands.Bug Fixes
Refactor
shared-types
module.Chores
Cargo.toml
files.