Feat/public api#27
Closed
Keyrxng wants to merge 58 commits into
Closed
Conversation
- Introduced centralized error messages for various task assignment scenarios, improving clarity and user guidance. - Refactored eligibility checks to streamline the assignment process and ensure proper error handling. - Added detailed logging for task limits and user roles, enhancing debugging capabilities. - Implemented a new function to evaluate start eligibility, consolidating checks for price labels, task staleness, and assignment limits.
…rage - Added a new error message for cases where an issue is already assigned, providing clearer guidance to users. - Refactored the eligibility check to differentiate between the sender being assigned and the issue being assigned to someone else. - Updated tests to use more concise error assertions, improving readability and maintainability. - Enhanced mock database and handler responses to better simulate real-world scenarios in tests.
- Refactored the task handling logic by consolidating user command processing into a dedicated handler. - Introduced new handlers for managing pull request events, including closing unassigned pull requests and handling new pull request or edit events. - Removed deprecated user start/stop handler and updated references throughout the codebase. - Enhanced the overall structure and readability of the code by organizing related functionalities into separate modules. - Updated tests to reflect changes in the command structure and ensure comprehensive coverage of new functionalities.
- Consolidated listener definitions in manifest.json for better readability. - Enhanced code formatting across multiple handler files, ensuring consistent style and improved clarity. - Refactored error handling and eligibility checks in task assignment to enhance maintainability. - Updated various helper functions to improve structure and readability, including better error messaging and streamlined logic. - Ensured all files end with a newline for consistency.
- Introduced a new public API endpoint to handle task management, supporting recommendation retrieval, eligibility validation, and task execution. - Added helper functions for JWT verification, context building, and issue URL parsing to streamline request handling. - Implemented rate limiting to manage API usage effectively. - Enhanced error handling and response structures for better clarity and user experience. - Integrated recommendations based on user embeddings to suggest similar issues when no issue URL is provided. - Updated environment types to include necessary configurations for GitHub integration.
…rs for public API use
… unnecessary parameters
… parameter handling
…ment and repository ownership
Unused files (1)
Unused exports (2)
|
- Added eslint-plugin-import to ESLint configuration for improved import management. - Configured import/order rule to enforce consistent import order. - Updated package.json to include eslint-plugin-import as a dependency. - Added a new Deno development script to package.json for easier development. - Changed TypeScript module setting from ES2022 to ESNext for better compatibility. - Updated wrangler.toml to include KV namespaces for rate limiting in both dev and prod environments.
…dling and logging
…move isDevelopment utility
… in authentication and validation processes
…ence verification
…t for POST requests and improving validation logic
…ng authentication, rate limiting, and usage examples
…h for improved response management
…ort groups and remove unnecessary blank lines in various files
…and-start-stop into feat/public-api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.