{"id":34550767,"url":"https://github.com/anisimov-anthony/assignment-service","last_synced_at":"2026-05-25T13:04:40.956Z","repository":{"id":325867734,"uuid":"1100025111","full_name":"anisimov-anthony/assignment-service","owner":"anisimov-anthony","description":"Go microservice that automates the process of assigning reviewers to Pull Requests in development teams","archived":false,"fork":false,"pushed_at":"2025-12-07T15:49:42.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T19:19:04.524Z","etag":null,"topics":["assignment","go","golang","microservice","mongodb","pull-requests","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/anisimov-anthony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-19T18:36:08.000Z","updated_at":"2025-12-07T15:49:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/anisimov-anthony/assignment-service","commit_stats":null,"previous_names":["anisimov-anthony/assignment-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anisimov-anthony/assignment-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisimov-anthony%2Fassignment-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisimov-anthony%2Fassignment-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisimov-anthony%2Fassignment-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisimov-anthony%2Fassignment-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anisimov-anthony","download_url":"https://codeload.github.com/anisimov-anthony/assignment-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisimov-anthony%2Fassignment-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33475809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["assignment","go","golang","microservice","mongodb","pull-requests","rest-api"],"created_at":"2025-12-24T08:00:22.170Z","updated_at":"2026-05-25T13:04:40.951Z","avatar_url":"https://github.com/anisimov-anthony.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Assignment Service\n\nMicroservice for automatically assigning reviewers to Pull Requests.\n\n## Technology Stack\n\n- **Language**: Go 1.22\n- **Database**: MongoDB 7.0\n- **HTTP Router**: Gorilla Mux\n- **Logging**: Uber Zap\n- **Testing**: Go testing + testify\n- **Containerization**: Docker + Docker Compose\n\n## Quick Start\n\n### Running with Docker Compose\n\n```bash\n# Start all services\ndocker-compose up\n\n## Convenient make commands (other commands can be found via make help)\n# Stop and clean up\nmake docker-clean\n# Start\nmake docker-up\n```\n\nThe service will be available at `http://localhost:8080`\n\n**Note:** If you already have a local MongoDB running on port 27017, Docker Compose will automatically use port 27018 for external access. Inside the Docker network, containers communicate via the standard port 27017.\n\n\n### Local Development\n\n```bash\n# Install dependencies\nmake deps\n\n# Build and run\nmake run\n\n# Or simply:\ngo run ./cmd/server\n```\n\n## Makefile\n\nMain commands (make help):\n\n- `build`             Build binary\n- `run`               Run application locally\n- `test`              Run tests with race detector\n- `test-coverage`     Show test coverage\n- `lint`              Check code with golangci-lint\n- `fmt`               Format code (go fmt + goimports)\n- `verify`            Full check: format + linter + tests\n- `clean`             Remove binaries and coverage\n- `deps`              Download and clean up dependencies\n- `docker-build`      Build Docker images\n- `docker-up`         Start services\n- `docker-up-detached` Start services (in background)\n- `docker-down`       Stop and remove containers\n- `docker-clean`      Full cleanup: containers + volumes + images\n- `docker-logs`       Follow container logs\n- `help`              Show this help\n\n## API Endpoints\n\n### Main Endpoints (described in OpenAPI)\n\n- `POST /team/add` - create team\n- `GET /team/get` - get team information\n- `POST /users/setIsActive` - set user activity status\n- `GET /users/getReview` - get PRs assigned to user\n- `POST /pullRequest/create` - create Pull Request\n- `POST /pullRequest/merge` - set `MERGED` status for Pull Request\n- `POST /pullRequest/reassign` - reassign reviewer\n\n### Additionally Implemented Endpoints\n\n- `GET /health` - check service health (not described in OpenAPI, only declared)\n- `GET /stats/user` - user statistics\n\n## Testing\n\nCode coverage: **87.5%**\n\n```bash\n# Run all tests\nmake test\n\n# View coverage\nmake test-coverage\n```\n\nTests verify all main service scenarios including error handling and edge cases.\n\n## Load Testing\n\nMore details are described in `scripts/k6/README.md`\n\n**k6** is used for load testing. Tests are located in the `scripts/k6/` folder:\n\nTest results are saved to:\n- `scripts/k6/results/` - text reports directly from the terminal with k6 runs\n- `scripts/k6/k6-results/YYYY-MM-DD/` - JSON results for analysis (local folder)\n- `scripts/k6/parse_results.py` - script for parsing results\n\n### Testing Hardware\n\nLoad testing was performed on the following hardware:\n\n**Main specifications:**\n- **CPU**: Intel i3-7020U (4 cores) @ 2.3GHz\n- **RAM**: 8GB\n- **OS**: Arch Linux x86_64\n\n## CI/CD\n\nThe project is configured with GitHub Actions:\n\n- **go-ci.yml** - building, testing and linting Go code\n- **docker-ci.yml** - building Docker images\n\n## License\n\nThis project is distributed under the [MIT License](LICENSE).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanisimov-anthony%2Fassignment-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanisimov-anthony%2Fassignment-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanisimov-anthony%2Fassignment-service/lists"}