Skip to content

Improve init CI/CD workflow prompt#18

Merged
rmorehig merged 6 commits intomainfrom
rmorehig/init-ci-prompt
Feb 5, 2026
Merged

Improve init CI/CD workflow prompt#18
rmorehig merged 6 commits intomainfrom
rmorehig/init-ci-prompt

Conversation

@rmorehig
Copy link
Collaborator

@rmorehig rmorehig commented Feb 4, 2026

Summary

  • Replace two separate CI/CD prompts with a single select prompt
  • Add explicit "skip" option for users who don't want CI/CD setup
  • Split GitLab workflow into separate CI and CD files (.gitlab/tinybird-ci.yaml and .gitlab/tinybird-cd.yaml)
  • Update hint messages to show actual file paths

Changes

Before (2 prompts):

  1. "Which git provider are you using?" → GitHub / GitLab
  2. "Create CI/CD workflows for Tinybird?" → Yes / No

After (1 prompt):

◆  Set up CI/CD workflows?
│  ○ Yes, for GitHub Actions  (Creates .github/workflows/tinybird-ci.yaml and tinybird-cd.yaml)
│  ○ Yes, for GitLab CI       (Creates .gitlab/tinybird-ci.yaml and tinybird-cd.yaml)
│  ○ No, skip for now         (You can add these later)

Test plan

  • Run tinybird init and select GitHub Actions
  • Run tinybird init and select GitLab CI
  • Run tinybird init and select skip
  • Verify correct files are created for each selection

🤖 Generated with Claude Code

@rmorehig rmorehig force-pushed the rmorehig/init-ci-prompt branch 8 times, most recently from 305253a to c5c672f Compare February 4, 2026 21:36
- Replace two separate prompts with single select prompt
- Add explicit skip option for CI/CD setup
- Split GitLab workflow into separate CI and CD files
- Move GitLab files to .gitlab/ folder
- Bump version to 0.0.8

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rmorehig rmorehig force-pushed the rmorehig/init-ci-prompt branch from c5c672f to c8f547c Compare February 4, 2026 21:52
rmorehig and others added 5 commits February 4, 2026 23:13
- Init now creates lib/tinybird.ts (or src/lib/tinybird.ts) instead of
  separate datasources.ts, endpoints.ts, and client.ts files
- Add generateCombinedFile() to codegen for single-file output
- Add jsonpath: false to datasource definitions when no columns use jsonpath
- Remove unused legacy config functions (getLibDir, getRelativeLibDir, etc.)
- Update all tests for new file structure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove "Created:" and "Skipped:" output messages from init
- Change "Done! Next steps:" to just "Next steps:"
- Remove trailing slash from client path in output
- Use jsonPaths instead of jsonpath in codegen

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rmorehig rmorehig merged commit 7b6edb3 into main Feb 5, 2026
1 check 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.

1 participant