Add: GitHub alert aggregator + optimized message format + GitHub tool for sre assistant #22
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.
This pull request introduces several enhancements and new features to the
src/aggregator
module, focusing on integrating GitHub context aggregation, improving error handling, and updating the context analysis process. The most important changes include adding a new GitHub aggregator, updating the context analysis prompts, and modifying the structure of job logs.GitHub Aggregation Integration:
githubAggregator
to fetch context from GitHub repositories, including recent commits, pull requests, and releases. (src/aggregator/ContextAggregator.ts
,src/aggregator/github-aggregator.ts
,src/aggregator/github-aggregator.spec.ts
) [1] [2] [3] [4]Context Analysis Improvements:
src/aggregator/chains.ts
) [1] [2]Error Handling Enhancements:
aggregate
method ofCheckContextAggregator
to log errors and return an empty array if context fetching fails. (src/aggregator/ContextAggregator.ts
)Job Log Structure Update:
jobLog
inErrorMessage
to separate logs intosetup
,request
, andteardown
phases. (src/checkly/models.ts
) [1] [2]Miscellaneous Updates:
checkly-aggregator.spec.ts
to reflect new check names and IDs. (src/aggregator/checkly-aggregator.spec.ts
)checklyAggregator
for better traceability. (src/aggregator/checkly-aggregator.ts
)These changes collectively enhance the functionality and robustness of the context aggregation and analysis processes, particularly with the integration of GitHub data.