Skip to content

ci(ksai): call KSAI through the public mirror - #463

Merged
adamdehaven merged 1 commit into
Kong:masterfrom
bartsmykla:feat/ksai
Sep 22, 2026
Merged

adamdehaven merged 1 commit into
Kong:masterfrom
bartsmykla:feat/ksai

Conversation

@bartsmykla

Copy link
Copy Markdown
Contributor

Motivation

Kong/design-tokens, Kong/icons, Kong/kongponents and Kong/public-ui-components all run KSAI, and swrv does not. This adds the same calling workflow here, pinned to the current release. Kong/ksai-public is the published snapshot of the internal repository, and it is what a public repository can resolve in a uses: reference.

Implementation

  • Add .github/workflows/ksai.yaml calling ksai.yml, ksai-request.yml and ksai-hold.yml at v3.102.3, the same three jobs and the same wiring the team's other public repositories run
  • Answer /ksai on a comment, request a review when a pull request opens or leaves draft, and hold a pull request KSAI wrote until somebody who did not contribute to it approves
  • Name the gateway origin through KSAI_ANTHROPIC_BASE_URL, without which every run stops in run / gate

Before the first run, this repository needs:

  • The four KSAI_* repository variables and CORE_UI_GH_APP_READ_ID, copied from Kong/public-ui-components
  • The CORE_UI_GH_APP_READ_PRIVATE_KEY secret, and the App installed here with write on contents, issues and pull requests
  • Kong/swrv in the team's federation rule, which is a separate pull request on the KSAI repository and has to merge first
  • Read access for the ksai team, or the automatic review request fails; comment-triggered commands work without it

The KSAI / independent approval status only becomes required if a branch ruleset asks for it.

The other public repositories this team owns run KSAI, and swrv did
not. The workflow calls the published snapshot, which a public
repository can resolve, pinned to the current release.

Commands answer a comment; a review is requested when a pull request
opens or leaves draft; and a pull request KSAI wrote is held until
somebody who did not contribute to it approves.

Signed-off-by: Bart Smykla <bartek@smykla.com>
@netlify

netlify Bot commented Sep 22, 2026

Copy link
Copy Markdown

👷 Deploy request for docs-swrv pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 260806a

@adamdehaven
adamdehaven merged commit fc6aad3 into Kong:master Sep 22, 2026
9 checks 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.

2 participants