feat: add api-server endpoint automatic tracking and AI PR-generation#366
Open
danielboloc wants to merge 33 commits into
Open
feat: add api-server endpoint automatic tracking and AI PR-generation#366danielboloc wants to merge 33 commits into
danielboloc wants to merge 33 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the plumbing in cloudos-cli to support an automation workflow that receives api-server endpoint-change events and kicks off a Copilot cloud agent task to generate a synchronization PR, alongside introducing a JSON “supported endpoints” registry and bumping the CLI version/changelog.
Changes:
- Adds a GitHub Actions workflow to accept an endpoint-change payload and start a Copilot agent task to open a PR.
- Introduces
supported-endpoints.jsonas an endpoint→CLI-command mapping registry. - Bumps CLI version to
2.94.0and adds a corresponding changelog entry.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
supported-endpoints.json |
Adds endpoint registry intended to act as the source of truth for endpoint→CLI mappings. |
cloudos_cli/_version.py |
Version bump to 2.94.0. |
CHANGELOG.md |
Adds v2.94.0 release notes for the workflow + registry. |
.github/workflows/receive-endpoint-event.yml |
Adds workflow to accept payloads and create a Copilot agent task/PR. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Overview
When a CLI-supported endpoint gets changed in the API, the automation will detect it and start a PR with an AI agent in the CLI repo (https://github.com/lifebit-ai/cloudos-cli).
For supported API endpoints check: https://github.com/lifebit-ai/cloudos-cli/blob/ai-server-cli/supported-endpoints.json (change branch to main if the file is not found after PR merge)
The changes between supported endpoints vs changes in the PR merge is done by src/scripts/detect-endpoint-changes-determ.py. The automation is only triggered upon PR merge to main
JIRA
Acceptance Criteria
rename endpoint
changed 1 endpoint that had 1->1 relationship in the CLI (only one endpoint is changed in the CLI)
PR merge in api-server: https://github.com/lifebit-ai/api-server/pull/5655
AI session started in CLI repo: https://github.com/lifebit-ai/cloudos-cli/tasks/b760859b-6189-483a-b5d3-08d4c3e9e4bb
PR generated by Agent: #361
modify endpoint
changed 1 endpoint that had 1->many relationship in the CLI (many endpoints are changed in the CLI)
PR merge in api-server: https://github.com/lifebit-ai/api-server/pull/5656
AI session started in CLI repo: https://github.com/lifebit-ai/cloudos-cli/tasks/1b7ce61e-1bf5-4379-9e00-689fb01023c6
PR generated by Agent: #362
remove endpoint
PR merge in api-server: https://github.com/lifebit-ai/api-server/pull/5665
AI session started in CLI repo: https://github.com/lifebit-ai/cloudos-cli/tasks/ea124a66-8a7c-4950-a969-a3d7f00b72ea
PR generated by Agent: #364
add endpoint
PR merge in api-server: https://github.com/lifebit-ai/api-server/pull/5667
AI session started in CLI repo: https://github.com/lifebit-ai/cloudos-cli/tasks/b05a98b9-63ee-4b82-a5c9-28ec4837991c
PR generated by Agent: #365