Skip to content

Support GitLab and Bitbucket as alternatives to GitHub #7

Closed

Description

@admarble

Problem

Sequant is tightly coupled to GitHub:

  • Skills reference GitHub issues
  • `gh` CLI is a hard dependency
  • No documentation for GitLab/Bitbucket users

Many teams use GitLab (especially enterprise) or Bitbucket.

Proposed Solution

Phase 1: Documentation

  • Document that GitHub is currently required
  • Provide workarounds for non-GitHub users (manual issue tracking)

Phase 2: Abstraction

  • Abstract issue fetching behind a provider interface
  • Support `glab` CLI for GitLab
  • Support Bitbucket API or CLI

Phase 3: Configuration

  • Allow `sequant init --provider gitlab`
  • Store provider in manifest
  • Skills use appropriate CLI

Acceptance Criteria

  • Phase 1: Clear documentation about GitHub requirement
  • Phase 2: Provider abstraction layer (stretch)
  • Phase 3: GitLab support via glab CLI (stretch)

Priority

Medium - important for enterprise adoption but significant scope.

Activity

  1. added
    enhancement
    on Jan 9, 2026
  2. admarble commented on Jan 11, 2026

    @admarble
    ContributorAuthor

    Implementation Plan

    Acceptance Criteria Checklist

    • AC-1: Clear documentation about GitHub requirement

      • Verification: Manual review of README and docs
      • Test: New user can find GitHub requirement info within 30 seconds
    • AC-2: Provider abstraction layer (stretch)

      • Verification: Unit tests for provider interface
      • Test: GitHubProvider routes all gh calls without behavior change
    • AC-3: GitLab support via glab CLI (stretch)

      • Verification: Integration test with GitLab repo
      • Test: sequant init --provider gitlab + core workflow succeeds

    Verification Methods Summary

    AC Method Automated
    AC-1 Manual review No
    AC-2 Unit test Yes
    AC-3 Integration test Partial

    Assumptions to Validate

    • Users will accept manual issue tracking as temporary workaround
    • glab CLI provides equivalent functionality to gh
    • GitLab issues have comparable metadata (labels, comments)

    Implementation Phases

    Phase 1: Documentation (Recommended MVP)

    1. Update README.md prerequisites with explicit GitHub requirement
    2. Create docs/platform-requirements.md with:
      • Current GitHub dependency explanation
      • Manual issue tracking workaround
      • Roadmap for multi-platform support

    Estimated files changed: 2

    Phase 2: Provider Abstraction (Stretch)

    1. Design IssueProvider interface in src/lib/providers/types.ts
    2. Implement GitHubProvider class wrapping existing gh calls
    3. Refactor src/commands/run.ts to use provider
    4. Skills remain GitHub-specific (TypeScript abstraction only)

    Estimated files changed: 4-5

    Phase 3: GitLab Support (Stretch - Future Issue)

    1. Implement GitLabProvider using glab CLI
    2. Add --provider flag to sequant init
    3. Store provider in .sequant-manifest.json

    Estimated files changed: 3-4

    Key Decisions

    Decision Choice Rationale
    Phase 1 scope Documentation only Provides immediate value, low risk
    Skill files Keep GitHub-specific Templating system too complex for stretch goal
    Provider priority GitLab first Official CLI available (glab)

    Open Questions

    1. Skill file multi-provider support? → Recommendation: Defer (keep GitHub-specific)
    2. Bitbucket priority? → Recommendation: After GitLab (API-only is more complex)

    Conflict Risk

    In-flight work on #9 (setup wizard) touches src/lib/system.ts and src/commands/init.ts. Phase 1 has no conflict. Phase 2+ should wait for #9 to merge.

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: Documentation-focused Phase 1 with clear scope.


    🤖 Plan generated by /spec — ready for review

  3. added
    planned
    on Jan 11, 2026
  4. added a commit that references this issue on Jan 11, 2026
  5. admarble commented on Jan 11, 2026

    @admarble
    ContributorAuthor

    Implementation Progress Update

    AC Coverage Summary

    AC Status Notes
    AC-1: Clear documentation about GitHub requirement ✅ Complete README + dedicated docs page
    AC-2: Provider abstraction layer (stretch) ⏳ Deferred Documented in roadmap
    AC-3: GitLab support via glab CLI (stretch) ⏳ Deferred Documented in roadmap

    Files Changed

    • README.md - Added GitHub requirement note in Prerequisites, linked to new platform docs
    • docs/platform-requirements.md - New comprehensive documentation

    Implementation Details

    Phase 1 (Documentation) completed:

    1. Added explicit note in README Prerequisites about GitHub being required
    2. Created docs/platform-requirements.md with:
      • Explanation of current GitHub dependency and why
      • Three workarounds for non-GitHub users:
        • Manual issue mode (use descriptions instead of issue numbers)
        • GitHub mirror approach
        • Local tracking with markdown files
      • Roadmap for multi-platform support (Phases 2-4)

    Checks Passed

    • ✅ npm test - 281 tests passing
    • ✅ npm run build - TypeScript compilation successful

    PR Status

    ✅ Created: #64

    Notes

    Phase 1 (documentation) is complete and provides immediate value for users. Phases 2-3 (provider abstraction, GitLab support) are stretch goals that can be addressed in future issues if there's demand.


    🤖 Generated by /exec phase

  6. admarble commented on Jan 11, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #7

    AC Coverage

    AC Description Status Notes
    AC-1 Clear documentation about GitHub requirement MET README has explicit note in Prerequisites + dedicated docs/platform-requirements.md with 131 lines of documentation including workarounds
    AC-2 Provider abstraction layer (stretch) N/A - DEFERRED Documented in roadmap as Phase 2; not implemented per plan
    AC-3 GitLab support via glab CLI (stretch) N/A - DEFERRED Documented in roadmap as Phase 3; not implemented per plan

    Coverage: 1/1 mandatory AC items fully met (stretch goals correctly deferred)


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 ✅ OK
    Deleted tests 0 ✅ OK
    Files changed 2 ✅ OK
    Lines added +134 -
    Lines deleted -0 -

    Code Review

    Strengths:

    • Documentation is comprehensive and well-structured
    • Three practical workarounds provided for non-GitHub users
    • Clear roadmap with phases 2-4 for future platform support
    • README prominently displays the GitHub requirement
    • TypeScript interface example gives contributors clear direction

    Issues:

    • None identified

    Verdict: ✅ READY_FOR_MERGE

    The implementation fully meets AC-1 (clear documentation about GitHub requirement). The stretch goals (AC-2 and AC-3) were intentionally deferred per the approved implementation plan, with a clear roadmap documented for future implementation.

    Next Steps

    1. ✅ Ready for merge - PR docs(#7): document GitHub requirement and platform workarounds #64
    2. Consider follow-up issues for Phase 2/3 when there is user demand

    🤖 Generated by /qa phase

  7. added
    ready-for-review
    on Jan 11, 2026
  8. admarble commented on Jan 11, 2026

    @admarble
    ContributorAuthor

    Documentation Generated ✅

    File: docs/platform-requirements.md

    Sections Included:

    • Current GitHub Dependency - Explains why gh CLI is required
    • Workarounds - Three options for non-GitHub users:
      1. Manual Issue Mode (description-based references)
      2. GitHub Mirror (maintain parallel repo)
      3. Local Tracking (markdown files)
    • Roadmap - Phases 2-4 for multi-platform support
    • TypeScript Interface - Example IssueProvider abstraction
    • Contributing - How to add platform support

    Also Updated:

    • README.md - Added note in requirements section + link in docs index

    Quality Checklist:

    • Operational focus (how to use workarounds)
    • Step-by-step examples for each option
    • Future roadmap clearly documented
    • Contributing guidance included

    Ready to merge!

  9. added a commit that references this issue on Jan 11, 2026
  10. added a commit that references this issue on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplannedready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions