Skip to content

feat: CI/CD lifecycle hooks for external pipeline integration #56

Description

@nigel-dev

Source

Audit report — Section 9: Phase 3 Roadmap

Description

MC operates entirely locally. There is no integration with CI/CD pipelines — when MC creates a PR, it has no way to monitor CI status, trigger deployments, or gate merges on external pipeline results.

Proposed Solution

  1. PR status monitoring: After mc_pr creates a PR, optionally poll GitHub checks API for CI status
  2. CI-aware merge gating: Don't merge (or warn) if CI checks are failing on a job's branch
  3. Post-merge hooks: Run configurable commands after a successful merge (e.g., deploy, notify)
  4. Webhook support: Accept webhooks from CI systems to update job/plan status
  5. Pipeline templates: Define pre/post hooks per project in MC config

Use Cases

  • Wait for CI to pass before merging a plan's integration branch
  • Trigger staging deployment after all plan jobs merge
  • Notify Slack/Discord on plan completion
  • Block PR creation if branch CI is failing

Priority

P3 — long-term integration feature. Current workaround is manual CI checking after PR creation.

Activity

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

    P3: lowNice to have — polish, cleanup, or long-termenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions