Skip to content

Feature: Implements GitHub Notifications Management Functionality - #13

Merged
rmottainfo merged 1 commit into
rmottanet:mainfrom
rmottainfo:feature/notifications
Oct 18, 2025
Merged

Feature: Implements GitHub Notifications Management Functionality#13
rmottainfo merged 1 commit into
rmottanet:mainfrom
rmottainfo:feature/notifications

Conversation

@rmottanet

Copy link
Copy Markdown
Owner

This pull request introduces two new functions, gh-notifications-list.sh and gh-notifications-delete.sh, to allow authenticated users to view and manage their GitHub notifications directly within the tool. These utilities utilize the GitHub API to fetch and modify notification data.


Scripts Implemented:

  • gh-notifications-list.sh: This function retrieves and displays the authenticated user's current GitHub notifications. It interacts with the GitHub API (api.github.com/notifications), stores the JSON response in a temporary file, and presents the list to the user in the terminal using less for easy navigation. This is analogous to the gh-repo-list.sh implementation.

  • gh-notifications-delete.sh: This function allows the user to delete (mark as read/done) a specific GitHub notification thread. It accepts the notification thread ID as a required argument and sends a DELETE request to the GitHub API (api.github.com/notifications/threads/{thread_id}) to dismiss the notification.


Motivation:

This enhancement provides users with a convenient command-line interface to keep track of and manage their GitHub activity without leaving the terminal environment.

  • Efficiency: Users can quickly check for new activity and clear out notifications without switching contexts to a web browser.
  • Automation Building Block: The functions serve as foundational tools for future scripting and automation, such as creating routines to process or archive specific types of notifications programmatically.

* Create gh-notification-list.sh

* Create gh-notification-delete.sh
@rmottanet rmottanet self-assigned this Oct 18, 2025
@rmottanet rmottanet added the enhancement New feature or request label Oct 18, 2025
@rmottainfo
rmottainfo merged commit 2a12cd1 into rmottanet:main Oct 18, 2025
@rmottanet
rmottanet deleted the feature/notifications branch October 19, 2025 15:20
@rmottanet rmottanet added this to @CL1 Jul 11, 2026
@github-project-automation github-project-automation Bot moved this to Done in @CL1 Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants