Skip to content

Commit 93496d7

Browse files
sylvansysclaude
andauthored
feat(github-orchestration): Add Supabase dashboard links and Cloudflare Deployments API (#337)
* Session work\n\nAuto-commit at session end to preserve work in progress.\n\nSession-ID: fe7105d4-43e5-4986-9ff9-c8f0a1f4dcb8\nSession-Timestamp: 2026-01-31T00:05:12.324Z\nBranch: 336-feature/please-update-the-gh-context-stop-hook-t\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * Session work\n\nAuto-commit at session end to preserve work in progress.\n\nSession-ID: 1539a687-84a5-4aa8-92b1-86a04ac4220b\nSession-Timestamp: 2026-01-31T00:41:00.319Z\nBranch: 336-feature/please-update-the-gh-context-stop-hook-t\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix(ci): Replace inline CI with thin reusable workflow caller Remove inline lint/typecheck/test/AI-review jobs and delegate to the org-level reusable CI pipeline (constellos/.github). AI Review is redundant with constellos-review.yml which already handles it. Matches the pattern used by nodes-md. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c084708 commit 93496d7

4 files changed

Lines changed: 245 additions & 190 deletions

File tree

.github/workflows/ci-pipeline.yml

Lines changed: 5 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4,72 +4,9 @@ on:
44
pull_request:
55
branches: ['**']
66

7-
permissions:
8-
contents: read
9-
pull-requests: write
10-
issues: read
11-
checks: write
12-
13-
concurrency:
14-
group: ci-${{ github.head_ref || github.ref_name }}
15-
cancel-in-progress: true
16-
177
jobs:
18-
lint:
19-
name: "Lint"
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v4
23-
- uses: oven-sh/setup-bun@v2
24-
- run: bun install --frozen-lockfile
25-
- run: bun run lint
26-
27-
typecheck:
28-
name: "Typecheck"
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v4
32-
- uses: oven-sh/setup-bun@v2
33-
- run: bun install --frozen-lockfile
34-
- run: bun run typecheck
35-
36-
test:
37-
name: "Test"
38-
runs-on: ubuntu-latest
39-
steps:
40-
- uses: actions/checkout@v4
41-
- uses: oven-sh/setup-bun@v2
42-
- run: bun install --frozen-lockfile
43-
- run: bun run test -- --passWithNoTests || echo "No tests"
44-
45-
review:
46-
name: "AI Review"
47-
needs: [lint, typecheck]
48-
if: github.event_name == 'pull_request'
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v4
52-
with:
53-
fetch-depth: 0
54-
55-
- name: Code Quality Review
56-
id: review
57-
uses: constellos/claude-code-actions/.github/actions/code-quality-reviewer@main
58-
with:
59-
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
60-
pr_number: ${{ github.event.pull_request.number }}
61-
github_token: ${{ secrets.GITHUB_TOKEN }}
62-
63-
- name: Post review comment
64-
if: always()
65-
uses: constellos/claude-code-actions/.github/actions/review-comment@main
66-
with:
67-
review_name: 'Code Quality'
68-
passed: ${{ steps.review.outputs.passed }}
69-
result_json: ${{ steps.review.outputs.result }}
70-
checks_passed: ${{ steps.review.outputs.checks_passed }}
71-
checks_failed: ${{ steps.review.outputs.checks_failed }}
72-
checks_skipped: ${{ steps.review.outputs.checks_skipped }}
73-
pr_number: ${{ github.event.pull_request.number }}
74-
sha: ${{ github.sha }}
75-
github_token: ${{ secrets.GITHUB_TOKEN }}
8+
CI:
9+
uses: constellos/.github/.github/workflows/ci-pipeline-reusable.yml@main
10+
with:
11+
node_version: '22'
12+
secrets: inherit

plugins/github-orchestration/hooks/await-pr-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async function handler(
181181
ci_status: ciRun?.status,
182182
vercel_urls: groupedPreviews.vercel,
183183
cloudflare_urls: groupedPreviews.cloudflare,
184-
supabase_urls: groupedPreviews.supabase,
184+
supabase_urls: groupedPreviews.supabase.map(s => s.dashboardUrl),
185185
});
186186

187187
return {

plugins/github-orchestration/hooks/commit-session-await-ci-status.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -819,19 +819,19 @@ function formatPRStatusWithCommit(
819819
}
820820
}
821821

822-
// Cloudflare Previews
822+
// Cloudflare Deployments
823823
if (groupedPreviews.cloudflare.length > 0) {
824-
message += '\n☁️ Cloudflare Worker Previews:\n';
824+
message += '\n☁️ Cloudflare Deployments:\n';
825825
for (const url of groupedPreviews.cloudflare) {
826826
message += ` • ${url}\n`;
827827
}
828828
}
829829

830-
// Supabase Previews
830+
// Supabase Previews (dashboard links)
831831
if (groupedPreviews.supabase.length > 0) {
832832
message += '\n⚡ Supabase Preview Branches:\n';
833-
for (const url of groupedPreviews.supabase) {
834-
message += ` • ${url}\n`;
833+
for (const preview of groupedPreviews.supabase) {
834+
message += ` • ${preview.dashboardUrl}\n`;
835835
}
836836
}
837837

@@ -899,19 +899,19 @@ function formatPRStatusInfo(
899899
}
900900
}
901901

902-
// Cloudflare Previews
902+
// Cloudflare Deployments
903903
if (groupedPreviews.cloudflare.length > 0) {
904-
message += '\n☁️ Cloudflare Worker Previews:\n';
904+
message += '\n☁️ Cloudflare Deployments:\n';
905905
for (const url of groupedPreviews.cloudflare) {
906906
message += ` • ${url}\n`;
907907
}
908908
}
909909

910-
// Supabase Previews
910+
// Supabase Previews (dashboard links)
911911
if (groupedPreviews.supabase.length > 0) {
912912
message += '\n⚡ Supabase Preview Branches:\n';
913-
for (const url of groupedPreviews.supabase) {
914-
message += ` • ${url}\n`;
913+
for (const preview of groupedPreviews.supabase) {
914+
message += ` • ${preview.dashboardUrl}\n`;
915915
}
916916
}
917917

0 commit comments

Comments
 (0)