Skip to content

🧠 Drupal DevOps Co-Pilot β€” an open-source AI assistant that automates Jira, GitLab, Drush, and EC2 deployments using FastAPI and Ollama. From issue to deployment β€” faster, smarter, auditable.

License

Notifications You must be signed in to change notification settings

ovanesb/drupal-devops-copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

tag license last commit stars

Python FastAPI Ollama LLM Drupal Drush AWS EC2 License: MIT

GitHub Discussions Issues Contributing


🧠 Drupal DevOps Co-Pilot

An open-source AI assistant that automates the full Drupal DevOps lifecycle β€” from Jira issue to GitLab merge request to EC2 deployment and QA.

AI-powered agent that plans, writes, commits, opens MRs, runs Drush QA, and deploys Drupal changes.

Built with FastAPI, GitLab CI, Jira API, and local or cloud LLMs like Ollama (Qwen2.5-Coder) or OpenAI-compatible endpoints.


✨ Features

  • Reads context: Jira ticket + repo scan + guardrails
  • Generates code: unified diff or JSON file manifest (for scaffolds)
  • Sanitizes safely: fixes JSON escapes, unescapes PHP $vars, removes rogue declare(strict_types)
  • Commits & pushes: clean messages, opens Merge Request automatically
  • Runs QA: Drush (cr, pm:install, etc.) on EC2 or your target host
  • Reports back: comments/updates to MR and Jira (optional)

Note

From ticket β†’ deployment in minutes, consistently.


🧱 Architecture (High-level)

  • Agent Brain (Python) β†’ prompt builder β†’ LLM call β†’ patch/manifest β†’ sanitizers β†’ Git ops
  • LLM Runtime β†’ Ollama (local) or any OpenAI-compatible /v1 endpoint
  • Integrations β†’ GitLab (MRs), Jira (optional), EC2/remote host (Drush QA & deploy)

System Architecture:
End-to-end automation from Jira β†’ GitLab β†’ EC2 using FastAPI and Ollama.

AI Co-Pilot architecture overview


πŸ› οΈ Requirements

  • OS: macOS or Linux (Apple Silicon & Intel both OK)
  • Python: 3.10+
  • Git: 2.30+
  • Ollama (for local LLM) or an OpenAI-compatible endpoint
  • GitLab repo (personal access token if creating MRs via API)
  • Drupal project to operate on (monorepo or separate checked out under work/)

πŸ“Ž TL;DR

# Install deps
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
ollama pull qwen2.5-coder:14b-instruct-q4_K_M

# Configure .env (see above), clone your Drupal repo to work/drupal-project

# Run
copilot-one-shot CCS-128
# or
copilot-workflow CCS-128 && copilot-ai-review-merge "<MR_URL>" --auto-merge --deploy

If you get stuck or want to propose an agent skill, open an issue β€” or ping me.


πŸ›£οΈ Roadmap & ideas for v2+

Feature Status
Multi-agent orchestration 🚧 In progress
DeepSeek/StarCoder LLMs 🧩 Planned
Plugin system 🧠 Concept
Web UI dashboard 🧭 Beta
Provider auto-benchmarking πŸ’‘ Idea

πŸ›‘οΈ Reliability

  • Strict path guardrails (web/modules/custom/)
  • JSON repair for invalid escapes (\Drupal, $vars)
  • PHP sanitizer removes declare(strict_types) and rogue define()
  • Retry logic for Ollama timeouts
  • Fallback to manifest mode if patch fails

🀝 Contributing

We welcome ideas and pull requests!
See CONTRIBUTING.md for guidelines.

🧭 Code of Conduct

Please review our CODE_OF_CONDUCT.md.
We aim for a respectful, inclusive, and helpful space for all contributors.


πŸ“š Documentation


πŸ™Œ Acknowledgements

Powered by the open-source communities behind Drupal, FastAPI, and Ollama.


πŸ’¬ Questions or ideas?

Join the discussion on GitHub Discussions β€”
we’d love to hear from contributors, Drupal engineers, and AI enthusiasts!

About

🧠 Drupal DevOps Co-Pilot β€” an open-source AI assistant that automates Jira, GitLab, Drush, and EC2 deployments using FastAPI and Ollama. From issue to deployment β€” faster, smarter, auditable.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •