Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub context aggregator to include release summaries #26

Merged
merged 10 commits into from
Dec 13, 2024

Conversation

schobele
Copy link
Collaborator

This pull request includes several changes to the prisma/migrations, src/aggregator, src/checkly, src/routes, and src/slackbot directories. The changes focus on adding new features, refactoring existing code, and improving the handling of context analysis and GitHub integration.

Key changes include:

Database Schema and Migrations:

  • Updated the AlertContext model in prisma/schema.prisma to include onDelete: Cascade for the alert relation.

Aggregator Enhancements:

  • Added a new ContextKey for GitHubReleaseSummary in src/aggregator/ContextAggregator.ts and updated the CheckContext interface to use $Enums.Source. [1] [2]
  • Refactored context analysis functions in src/aggregator/chains.ts to improve code readability and maintainability. [1] [2] [3]
  • Enhanced the githubAggregator to fetch relevant releases and map them to context values in src/aggregator/github-aggregator.ts. [1] [2] [3]

Utility Functions:

  • Added a utility function getLastSuccessfulCheckResult in src/checkly/utils.ts to fetch the last successful check result. [1] [2]

Route and Slackbot Updates:

  • Simplified the checklywebhook route by removing duplicate alert checks and unnecessary assistant analysis in src/routes/checklywebhook.ts. [1] [2] [3] [4] [5]
  • Added a utility function convertToSlackMarkdown in src/slackbot/app.ts to handle markdown conversion for Slack messages. [1] [2]

@schobele schobele merged commit 7090f64 into main Dec 13, 2024
1 check 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.

1 participant