Skip to content

feat: add api-server endpoint automatic tracking and AI PR-generation#366

Open
danielboloc wants to merge 33 commits into
mainfrom
ai-server-cli
Open

feat: add api-server endpoint automatic tracking and AI PR-generation#366
danielboloc wants to merge 33 commits into
mainfrom
ai-server-cli

Conversation

@danielboloc

Copy link
Copy Markdown
Collaborator

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

Comment thread .github/workflows/receive-endpoint-event.yml Fixed
@danielboloc danielboloc marked this pull request as ready for review June 19, 2026 15:16
Copilot AI review requested due to automatic review settings June 19, 2026 15:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json as an endpoint→CLI-command mapping registry.
  • Bumps CLI version to 2.94.0 and 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.

Comment thread supported-endpoints.json
Comment thread supported-endpoints.json
Comment thread .github/workflows/receive-endpoint-event.yml
Comment thread .github/workflows/receive-endpoint-event.yml Outdated
Comment thread .github/workflows/receive-endpoint-event.yml Outdated
Comment thread .github/workflows/receive-endpoint-event.yml
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>
@danielboloc danielboloc marked this pull request as draft June 22, 2026 10:09
@danielboloc danielboloc marked this pull request as ready for review June 22, 2026 10:10
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.

3 participants