How codesparadox/not_n_issue works
Project type and purpose
• This is an open-source, single-file Python CLI tool (“issues_manager.py”) built with Typer.
• Purpose: Perform full CRUD and advanced filtering on GitHub Issues for any repo, with optional Slack notifications.
• It also includes a GitHub Actions workflow that sends Slack notifications on issue events triggered via the GitHub web UI.
File structure
• Top-level files:
• .env.example (environment variable template)
• README.md (documentation & usage)
• requirements.txt (Python dependencies)
• issues_manager.py (single-file CLI application)
• Directories:
• .github/workflows/notify-slack-on-issue.yml (GitHub Actions workflow)
• docs/ (extended REPORT.md)
• No separate “src” or “lib” directories—everything lives in one script and one workflow file.
README for additional insights
• Confirms Typer for CLI parsing, requests for HTTP to GitHub API, python-dotenv for config.
• Describes core commands (create, get, update, close, comment, list, etc.), advanced filtering, JSON output.
• Slack integration optional via incoming webhook.
• GitHub Actions workflow triggers on issue events and posts to Slack.
2. Inside it, subdivide or annotate four modules:
• Parser (Typer)
• Config Loader (.env, python-dotenv)
• GitHub Adapter (requests)
• Slack Adapter (requests)
• CLI code (e.g., blue)
• Adapters (green)
• External services (gray)
• CI/CD flow (orange)