{"id":21205931,"url":"https://github.com/imigueldiaz/commit-tracker","last_synced_at":"2025-03-14T23:10:53.250Z","repository":{"id":262073635,"uuid":"886144030","full_name":"imigueldiaz/commit-tracker","owner":"imigueldiaz","description":"A Flask web application for documenting and organizing Git commits with branch management, file attachments, and Markdown support.","archived":false,"fork":false,"pushed_at":"2024-11-16T11:41:58.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T15:31:36.073Z","etag":null,"topics":["branch-management","commit-management","dark-theme","flask","git-tools","python","vstfs-tools"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imigueldiaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-10T10:18:50.000Z","updated_at":"2024-11-16T11:42:02.000Z","dependencies_parsed_at":"2024-11-10T11:26:24.678Z","dependency_job_id":"a11dbf26-26af-4969-9460-27bf1268ad31","html_url":"https://github.com/imigueldiaz/commit-tracker","commit_stats":null,"previous_names":["imigueldiaz/commit-tracker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imigueldiaz%2Fcommit-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imigueldiaz%2Fcommit-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imigueldiaz%2Fcommit-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imigueldiaz%2Fcommit-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imigueldiaz","download_url":"https://codeload.github.com/imigueldiaz/commit-tracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658270,"owners_count":20326467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["branch-management","commit-management","dark-theme","flask","git-tools","python","vstfs-tools"],"created_at":"2024-11-20T20:53:46.034Z","updated_at":"2025-03-14T23:10:53.227Z","avatar_url":"https://github.com/imigueldiaz.png","language":"HTML","readme":"# Commit Tracker\n\nA powerful web application for tracking and managing software development commits across different branches with advanced dependency and transition features.\n\n## 🚀 Features\n\n### Branch Management\n- **Branch Flow Visualization**: Interactive diagram showing branch relationships and dependencies\n- **Commit Counter**: Visual indicators showing number of commits per branch\n- **Tooltips**: Hover over branches to see detailed commit information\n- **Branch Dependencies**: Define and validate branch relationships\n- **Independent Branches**: Support for branches outside the main flow\n- **Branch Ordering**: Customizable branch order for deployment flows\n\n### Commit Management\n- **VSTFS Integration**: Track Visual Studio Team Foundation Server commits\n- **JIRA Integration**: Link commits to JIRA tickets\n- **Markdown Support**: Rich text formatting for commit descriptions\n- **File Attachments**: Support for multiple file attachments per commit\n- **Smart File Handling**: \n  - Automatic file attachment for images\n  - Intelligent paste handling based on context\n  - Support for drag \u0026 drop\n\n### Commit Transitions\n- **Branch Transitions**: Move commits between branches\n- **Transition History**: Track all commit movements\n- **Dependency Validation**: Prevent invalid transitions\n- **Recent Activity**: View recent commit transitions\n\n### UI/UX\n- **Dark Theme**: Modern dark theme design\n- **Responsive Layout**: Works on desktop and mobile\n- **Interactive Diagrams**: Using Mermaid.js for flow visualization\n- **Bootstrap 5**: Modern and responsive design\n- **FontAwesome Icons**: Clear visual indicators\n\n## 🛠 Technical Stack\n- **Backend**: Python/Flask\n- **Database**: SQLAlchemy ORM\n- **Frontend**: \n  - Bootstrap 5\n  - JavaScript\n  - Mermaid.js\n- **Features**:\n  - Markdown rendering\n  - File upload/download\n  - Dynamic tooltips\n  - Interactive diagrams\n\n## 🔧 Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/commit-tracker.git\ncd commit-tracker\n```\n2. Create and activate virtual environment:\n```bash\npython -m venv venv\nsource venv/bin/activate  # Linux/Mac\nvenv\\Scripts\\activate     # Windows\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n4. Initialize the database:\n```bash\nflask db init\nflask db migrate\nflask db upgrade\n```\n5. Run the application:\n```bash\nflask run\n```\n## 💡 Usage\n\n### Branch Setup\n1. Create branches with appropriate order and dependencies\n2. Define independent branches for hotfixes or parallel development\n3. Customize branch colors for visual distinction\n\n### Commit Management\n1. Create commits with VSTFS numbers and optional JIRA tickets\n2. Add detailed descriptions using Markdown\n3. Attach relevant files (images, documents, etc.)\n4. Move commits between branches following defined flows\n\n### Viewing and Reporting\n1. View branch flow diagram\n2. Track commit transitions\n3. Monitor branch dependencies\n4. View commit details and attachments\n\n## 🔒 Security Features\n- Attachment ownership validation\n- Branch transition validation\n- Input sanitization\n- Error handling and logging\n\n## 🐳 Docker Setup\n\nThe application can be run using Docker Compose, which sets up the Flask application with SQLite database support.\n\n### Prerequisites\n- Docker\n- Docker Compose\n\n### Running with Docker Compose\n\n1. Build and start the container:\n```bash\ndocker-compose up --build\n```\n\n2. Initialize the database (first time only):\n```bash\ndocker-compose exec web flask db upgrade\n```\n\n3. Access the application at http://localhost:5000\n\n### Development with Docker\n\nWhen developing with Docker, you can use the following commands to interact with the application:\n\n1. Running Flask Commands:\n```bash\n# Create database migrations\ndocker-compose exec web flask db migrate -m \"migration message\"\n\n# Apply migrations\ndocker-compose exec web flask db upgrade\n\n# Access Flask shell\ndocker-compose exec web flask shell\n```\n\n2. Running Python Scripts:\n```bash\n# Import data\ndocker-compose exec web python import_data.py\n\n# Export data\ndocker-compose exec web python export_data.py\n```\n\n3. Development Workflow:\n- Code changes are automatically reflected in the container thanks to volume mounting\n- After making changes to Python files, restart the container:\n  ```bash\n  docker-compose restart web\n  ```\n- For database schema changes:\n  1. Modify models in `app/models.py`\n  2. Create migration: `docker-compose exec web flask db migrate -m \"change description\"`\n  3. Apply migration: `docker-compose exec web flask db upgrade`\n\n### Stopping the Application\n\nTo stop the application:\n```bash\ndocker-compose down\n```\n\nNote: The SQLite database file is stored in the `instance` directory, which is persisted through Docker volumes.\n\n## 🤝 Contributing\nContributions are welcome! Please feel free to submit pull requests.\n\n## 📝 License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🙏 Acknowledgments\n- Flask team for the excellent web framework\n- Mermaid.js for flow visualization\n- Bootstrap team for the UI framework\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimigueldiaz%2Fcommit-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimigueldiaz%2Fcommit-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimigueldiaz%2Fcommit-tracker/lists"}