Skip to content

feat: CI-agnostic support (GitLab, Bitbucket, generic)#1

Merged
fairley46 merged 10 commits intomainfrom
feat/ci-agnostic-support
Mar 20, 2026
Merged

feat: CI-agnostic support (GitLab, Bitbucket, generic)#1
fairley46 merged 10 commits intomainfrom
feat/ci-agnostic-support

Conversation

@fairley46
Copy link
Copy Markdown
Owner

Summary

  • Adds ci-platform.ts module for unified platform detection (GitHub/GitLab/Bitbucket/generic) with detectPlatform() and getPlatformEnv() mapping each CI's env vars to a common shape
  • Wires GitLab MR and Bitbucket PR metadata fetching into index.ts; guards GitHub API calls so they're skipped on non-GitHub platforms
  • Adds .gitlab-ci.yml and bitbucket-pipelines.yml drop-in config files, plus setup docs for GitLab, Bitbucket, and generic CI systems (Azure DevOps, CircleCI, Jenkins)

Test Plan

  • All 14 unit tests pass (npx vitest run)
  • TypeScript typecheck passes (npm run typecheck)
  • Push to a GitLab repo with AI_API_KEY + CI_ACCESS_TOKEN set — verify test → generate → notify stages
  • Push to a Bitbucket repo with AI_API_KEY + BB_ACCESS_TOKEN set — verify pipeline runs
  • Verify GitHub Actions workflow still works unchanged on a GitHub push

🤖 Generated with Claude Code

fairley46 and others added 10 commits March 20, 2026 09:20
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add gitlab-setup.md: GitLab CI configuration with variables, token creation, and branch triggers
- Add bitbucket-setup.md: Bitbucket Pipelines setup with repository variables and access tokens
- Add other-ci-setup.md: Generic guide for Azure DevOps, CircleCI, Jenkins, and other CI systems
- Update README.md: Add CI Platforms table linking to setup guides for all supported platforms

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fairley46 fairley46 merged commit 127a0bc into main Mar 20, 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