Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GitHub Notification Copilot — Environment Variables

# Required
GITHUB_TOKEN=ghp_your_github_token_here

# Optional — enables LLM-powered classification (falls back to rule-based without this)
ANTHROPIC_API_KEY=sk-ant-your-key-here

# Optional tuning
TRIAGE_LIMIT=50 # max notifications per run
TRIAGE_DRY_RUN=false # set to true to preview without executing actions
Comment on lines +8 to +11

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.env.example documents TRIAGE_LIMIT and TRIAGE_DRY_RUN, but the codebase does not read these environment variables (the limit/dry-run behavior is currently controlled via CLI args and default values). Either remove these variables from the example or implement env var support so the example matches actual runtime behavior.

Suggested change
# Optional tuning
TRIAGE_LIMIT=50 # max notifications per run
TRIAGE_DRY_RUN=false # set to true to preview without executing actions

Copilot uses AI. Check for mistakes.
23 changes: 23 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from setuptools import setup, find_packages

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find_packages is imported but never used. Either remove it from the import list, or switch to packages=find_packages(...) if you intend to package a package directory instead of individual py_modules.

Suggested change
from setuptools import setup, find_packages
from setuptools import setup

Copilot uses AI. Check for mistakes.

setup(
name="github-notifications-copilot",
version="1.0.0",
description="AI-powered GitHub notification triage using Claude",
py_modules=["notification_copilot", "github_api_client", "llm_classifier", "actions_executor"],
python_requires=">=3.11",

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python_requires is set to >=3.11, but the README currently advertises “Python 3.9+”. This mismatch will surprise users and can block installation on supported environments; either lower python_requires to match actual compatibility or update the README to reflect the new minimum Python version.

Suggested change
python_requires=">=3.11",
python_requires=">=3.9",

Copilot uses AI. Check for mistakes.
install_requires=[
"requests>=2.31.0",
"pyyaml>=6.0.1",
"python-dotenv>=1.0.0",
],
extras_require={
"llm": ["anthropic>=0.25.0"],
"dev": ["pytest>=7.4.0", "pytest-cov>=4.1.0"],
},
entry_points={
"console_scripts": [
"gh-copilot=notification_copilot:main",
]
},
)