Closed akorchyn closed 3 months ago
The recent changes simplify the initialization of the GithubClient
by making it asynchronous and removing the BOT_NAME
variable dependency. These alterations streamline interactions with the GitHub API and enhance the server's configuration.
Files | Change Summary |
---|---|
.env.example |
Removed BOT_NAME variable. |
Cargo.toml |
Added tracing dependency, removed log dependency. |
contract/src/views.rs |
Renamed fields in PRInfo , updated organization permission logic. |
server/Cargo.toml |
Changed log dependency to tracing . |
server/src/api/github/mod.rs |
Modified new method in GithubClient to be asynchronous. |
server/src/api/github/types.rs |
Removed several structs and enum. |
server/src/api/near.rs |
Added send_pause and send_unpause functions, updated PRInfo struct. |
server/src/commands/common.rs |
Revised import statements. |
server/src/commands/merged.rs |
Renamed field, added tracing instrumentation. |
server/src/commands/mod.rs |
Added modules, updated traits and enums. |
server/src/commands/pause.rs |
Introduced BotPaused and BotUnpaused structs. |
server/src/commands/score.rs |
Refactored BotScored struct, enhanced logging. |
server/src/commands/start.rs |
Refactored bot inclusion logic. |
server/src/main.rs |
Removed bot_name field from Env , updated GithubClient initialization. |
🐇✨🌟 A hop and a skip, the code does trim, No more
bot_name
, we're past that whim. Async awaits, so sleek and so slim, With every commit, the future's not grim! 🌟✨🐇
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?
Summary by CodeRabbit
New Features
Refactor
Chores