fix(frontend): correct GitHub callback path and add production ConfigMap patch#1443
Conversation
✅ Deploy Preview for cheerful-kitten-f556a0 canceled.
|
📝 WalkthroughWalkthroughChanges introduce a Changes
🚥 Pre-merge checks | ✅ 7 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (7 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Update fallback callback to /api/auth/github/user/callback (confirmed by team as the correct path for all clusters) - Add GITHUB_CALLBACK_URL to oc set env in both CI workflows: - components-build-deploy.yml (stage) - prod-release-deploy.yaml (UAT) - Remove kustomize ConfigMap patch (team uses CI env var injection) - Update README docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
76294cd to
644da6c
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/components-build-deploy.yml (1)
403-403: Stage callback URL duplicated across two jobs.Both
deploy-to-openshiftanddeploy-with-disptachhardcode the same stageGITHUB_CALLBACK_URL. Fine for now, but any future URL change means editing two spots — consider sourcing from a repo/environment variable (e.g.,vars.GITHUB_CALLBACK_URL_STAGE) to keep them in lockstep.Also applies to: 481-481
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/components-build-deploy.yml at line 403, The same hardcoded GITHUB_CALLBACK_URL value is duplicated in the deploy-to-openshift and deploy-with-dispatch jobs; define a single canonical variable (e.g., vars.GITHUB_CALLBACK_URL_STAGE) at the workflow level (or top-level env) and replace the inline hardcoded GITHUB_CALLBACK_URL assignments in both jobs with a reference to that variable (use the workflow expression syntax to read vars.GITHUB_CALLBACK_URL_STAGE), so deploy-to-openshift and deploy-with-dispatch both consume the single source of truth.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/components-build-deploy.yml:
- Line 403: The same hardcoded GITHUB_CALLBACK_URL value is duplicated in the
deploy-to-openshift and deploy-with-dispatch jobs; define a single canonical
variable (e.g., vars.GITHUB_CALLBACK_URL_STAGE) at the workflow level (or
top-level env) and replace the inline hardcoded GITHUB_CALLBACK_URL assignments
in both jobs with a reference to that variable (use the workflow expression
syntax to read vars.GITHUB_CALLBACK_URL_STAGE), so deploy-to-openshift and
deploy-with-dispatch both consume the single source of truth.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 67715694-93ab-4d44-a17c-2dda5f752067
📒 Files selected for processing (4)
.github/workflows/components-build-deploy.yml.github/workflows/prod-release-deploy.yamlcomponents/frontend/README.mdcomponents/frontend/src/components/github-connection-card.tsx
Summary
Follow-up to #1441. Two things that didn't make it into the squash merge:
/integrations/github/setupto/api/auth/github/user/callback(confirmed by team as the correct path for all clusters)GITHUB_CALLBACK_URLfrom a per-clusterfrontend-configConfigMapPer-cluster setup after deploy
Then
oc rollout restart deployment/frontend -n ambient-codeon each.Test plan
frontend-configConfigMap is not present🤖 Generated with Claude Code
Summary by CodeRabbit
Configuration Updates
Documentation