Skip to content

Add GitHub notifications namespace#477

Merged
ludeeus merged 2 commits intomainfrom
notifications
Jan 15, 2026
Merged

Add GitHub notifications namespace#477
ludeeus merged 2 commits intomainfrom
notifications

Conversation

@ludeeus
Copy link
Copy Markdown
Owner

@ludeeus ludeeus commented Nov 9, 2025

Description

Adds notification namespace to list notifications.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (which adds functionality)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements

Checklist

  • Tests pass locally (scripts/test)
  • Code has been formatted (scripts/lint)
  • Tests added for new functionality (if applicable)

Copilot AI review requested due to automatic review settings November 9, 2025 19:23
@ludeeus ludeeus added the feature New feature label Nov 9, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for GitHub's notifications API by introducing a new notifications namespace. The implementation follows the established patterns in the codebase for namespaces and models.

Key changes:

  • Added GitHubNotificationModel with nested _Subject model to represent notification data
  • Implemented GitHubNotificationsNamespace with a list() method supporting filtering parameters
  • Integrated the notifications namespace into the main GitHub API class

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
aiogithubapi/models/notification.py Defines notification data models with fields for id, repository, subject, reason, and read status
aiogithubapi/namespaces/notifications.py Implements the notifications namespace with list method supporting pagination and filtering
aiogithubapi/github.py Integrates notifications namespace into the main API class
aiogithubapi/__init__.py Exports GitHubNotificationModel for public API access
tests/namespaces/test_notifications.py Adds test coverage for the list notifications endpoint
tests/fixtures/notifications.json Provides mock response data for notifications tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ludeeus
Copy link
Copy Markdown
Owner Author

ludeeus commented Nov 9, 2025

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 9, 2025

@ludeeus I've opened a new pull request, #478, to work on those changes. Once the pull request is ready, I'll request review from you.

…ns namespace (#478)

* Initial plan

* Apply review feedback: use consistent type annotations in notifications namespace

Co-authored-by: ludeeus <15093472+ludeeus@users.noreply.github.com>

* Update aiogithubapi/namespaces/notifications.py

* Update aiogithubapi/namespaces/notifications.py

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ludeeus <15093472+ludeeus@users.noreply.github.com>
Co-authored-by: Joakim Sørensen <joasoe@proton.me>
@ludeeus ludeeus merged commit d4b96c8 into main Jan 15, 2026
7 checks passed
@ludeeus ludeeus deleted the notifications branch January 15, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants