Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add GitHub notifications namespace#477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ludeeus wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromnotifications
Open

Conversation

@ludeeus
Copy link
Owner

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)

CopilotAI review requested due to automatic review settingsNovember 9, 2025 19:23
@ludeeusludeeus added the featureNew feature labelNov 9, 2025
Copy link
Contributor

CopilotAI 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:

  • AddedGitHubNotificationModel with nested_Subject model to represent notification data
  • ImplementedGitHubNotificationsNamespace with alist() method supporting filtering parameters
  • Integrated the notifications namespace into the mainGitHub 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
FileDescription
aiogithubapi/models/notification.pyDefines notification data models with fields for id, repository, subject, reason, and read status
aiogithubapi/namespaces/notifications.pyImplements the notifications namespace with list method supporting pagination and filtering
aiogithubapi/github.pyIntegrates notifications namespace into the main API class
aiogithubapi/__init__.pyExports GitHubNotificationModel for public API access
tests/namespaces/test_notifications.pyAdds test coverage for the list notifications endpoint
tests/fixtures/notifications.jsonProvides mock response data for notifications tests

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

@ludeeus
Copy link
OwnerAuthor

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

Copilot reacted with eyes emoji

Copy link
Contributor

CopilotAI commentedNov 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 namespaceCo-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>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

featureNew feature

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ludeeus

[8]ページ先頭

©2009-2025 Movatter.jp