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

Combine tools#349

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

Closed

Conversation

rfearing
Copy link
Contributor

@rfearingrfearing commentedApr 25, 2025
edited
Loading

👉🏼 👉🏼 Note the target branch isnotifications-tooling, notmaster

Frommy previous PR into the same target branch, where I added "mark notification as done" I received the feedback to combine some of the tooling so we don't add as many tools for notification. This is my attempt to do that. Note, I definitely used:copilot: for help.

👇🏼 Previous feedback:
Previous feedback

@rfearingrfearing marked this pull request as ready for reviewApril 25, 2025 16:52
@CopilotCopilotAI review requested due to automatic review settingsApril 25, 2025 16:52
@rfearingrfearing requested a review froma team as acode ownerApril 25, 2025 16:52
Copy link
Contributor

@CopilotCopilotAI 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 consolidates various GitHub notification tools into a single ManageNotifications tool to reduce redundant tooling and simplify the API.

  • Combined separate functions for marking a notification as read, marking all notifications as read, and marking a notification as done into one unified tool.
  • Updated tooling registration in pkg/github/tools.go and merged logic in pkg/github/notifications.go to support action-based behavior.

Reviewed Changes

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

FileDescription
pkg/github/tools.goRegistering notifications tool now using GetNotifications and ManageNotifications.
pkg/github/notifications.goConsolidated and refactored notification actions into a single switch-case structure.

if lastReadAt != "" {
lastReadTime, err := time.Parse(time.RFC3339, lastReadAt)
switch action {
case "mark_read":
Copy link
Preview

CopilotAIApr 25, 2025

Choose a reason for hiding this comment

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

The 'mark_read' action does not call any API to mark a notification as read; it directly returns a success message. Please add the appropriate API call to actually mark the notification as read.

Copilot uses AI. Check for mistakes.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rfearing
Copy link
ContributorAuthor

rfearing commentedApr 25, 2025
edited
Loading

@juruen,@sridharavinash,@SamMorrowDrums, This is my attempt to address this previous comment:#270 (comment)

Sorry for the pings. I'm going to take another look at this first.

sridharavinash and SamMorrowDrums reacted with heart emoji

@rfearingrfearing marked this pull request as draftApril 25, 2025 16:56
@SamMorrowDrumsSamMorrowDrumsforce-pushed thenotifications-tooling branch 2 times, most recently from4624a97 tod49b7a6CompareMay 20, 2025 10:22
@SamMorrowDrums
Copy link
Collaborator

I did this work in the end as part of getting notifications stuff ready. Feel free to take a look at the original PR to see what happened.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@sridharavinashsridharavinashAwaiting requested review from sridharavinash

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@rfearing@SamMorrowDrums@sridharavinash

[8]ページ先頭

©2009-2025 Movatter.jp