Skip to content

Conversation

@cbackas
Copy link
Owner

@cbackas cbackas commented Apr 25, 2025

No description provided.

@cbackas cbackas changed the title New: major refactor, lean away from classes New: major refactor, general cleanup Apr 25, 2025
@cbackas cbackas requested a review from Copilot April 25, 2025 05:34
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 pull request performs a major refactor and general cleanup by removing the dependency on the App instance from command execution, unifying environment variable access with getEnv, and updating configuration for workflows.

  • Removed the App parameter from command execution functions and updated command manager accordingly.
  • Consolidated Settings management using a global Settings object.
  • Updated GitHub workflow permissions and refactored the app initialization logic.

Reviewed Changes

Copilot reviewed 27 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/lib/commandManager.ts Removed App dependency and updated command registration logic.
src/interfaces/command.ts Adjusted CommandV2 interface by removing redundant App parameters.
src/handlers.ts Added handler functions for channel and thread deletions.
src/cron.ts Introduced cron jobs using getEnv and simplified scheduling.
src/commands/* Updated command signatures to remove the App parameter.
src/app.ts Refactored application initialization and removed legacy code.
scripts/* and .github/workflows/* Configured workflow permissions and added deployment steps.
Files not reviewed (2)
  • deno.jsonc: Language not supported
  • import_map.json: Language not supported

@cbackas cbackas marked this pull request as ready for review April 25, 2025 14:42
@cbackas cbackas merged commit cb4ca4b into main Apr 25, 2025
8 checks passed
@cbackas cbackas deleted the refactor branch April 25, 2025 14:42
@cbackas
Copy link
Owner Author

cbackas commented May 10, 2025

🎉 This PR is included in version 4.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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