Skip to main content

Python print() Function

When you start learning Python, one of the first things you need to learn is how to display information on the screen. For example, you might want to display: A welcome message. Your name and age. The result of a mathematical calculation. Student marks and results. Information generated by a Python program. Python provides a built-in function called print() for displaying information. The print() function is one of the simplest and most frequently used functions in Python. It helps programmers display information while testing programs, solving problems, and developing applications. In this article, we will learn how to use print() with practical examples and their outputs. 1. What Is the print() Function in Python? The print() function is a built-in Python function that displays information in the output area, usually the terminal or console. Let's look at a simple example. print("Hello, World!") Output: Hello, World! In this example, Python displays the text Hello,...

GitHub Notifications Explained: How to Manage GitHub Alerts Without Getting Overwhelmed

As you start using GitHub more actively, you'll eventually notice that GitHub can generate a lot of notifications.

You might receive notifications when:

  • Someone mentions you

  • Someone comments on your Issue

  • A Pull Request is updated

  • Someone reviews your code

  • A repository you're watching changes

  • Someone assigns you a task

  • A discussion receives a new response

If you don't understand how GitHub notifications work, your notification list can quickly become difficult to manage.

In this article, you'll learn what GitHub notifications are, why you receive them, how watching works, how mentions affect notifications, and how to manage your GitHub notifications effectively.


What Are GitHub Notifications?

GitHub notifications are alerts that inform you about activity related to repositories, Issues, Pull Requests, Discussions, and other GitHub activity you're involved in or following.

For example:

Someone mentioned you
        ↓
GitHub notification
        ↓
You receive an alert

Notifications help you stay updated without constantly checking every repository manually.


Why Are GitHub Notifications Important?

Imagine you're working with five developers on a project.

One developer comments on your Pull Request.

Another assigns you an Issue.

Someone else asks you a question in a Discussion.

Without notifications, you might miss important information.

Notifications help you stay informed about activity that requires your attention.


Where Can You See GitHub Notifications?

GitHub provides a notifications area where you can review your alerts.

You can access notifications from your GitHub interface using the notification indicator.

A notification may tell you something like:

John commented on Pull Request #25

or:

You were assigned Issue #42

What Can Trigger a GitHub Notification?

Several types of activity can generate notifications.

Common examples include:

  • Mentions

  • Assignments

  • Issue comments

  • Pull Request comments

  • Pull Request reviews

  • Discussions

  • Repository activity you're watching

  • Releases

  • Security-related alerts

The exact notifications you receive depend on your subscriptions and GitHub settings.


GitHub Mentions

One of the most important notification triggers is a mention.

For example:

@username

If another developer mentions your GitHub username in a relevant GitHub conversation, you may receive a notification.

Example:

@shivam Can you review this Pull Request?

The mentioned person can then see the notification.


Why Are Mentions Useful?

Mentions allow developers to directly bring someone's attention to something.

For example:

@developer

Could you check the authentication code?

This is much more effective than hoping the developer notices the conversation.


Notifications From Issues

Suppose you're working on:

Issue #35
Fix Login Error

If someone comments:

I found another problem with the login validation.

You may receive a notification if you're subscribed to the Issue or otherwise involved.

This helps you stay informed about the task.


Notifications From Pull Requests

Pull Requests often generate multiple notifications.

For example:

Pull Request Created
        ↓
Code Review
        ↓
Reviewer Comment
        ↓
Author Responds
        ↓
New Changes
        ↓
Review Completed

If you're involved in the Pull Request, GitHub can notify you about relevant activity.


Notifications From Discussions

If you're participating in a GitHub Discussion, you may receive notifications when someone responds or otherwise interacts with the conversation, depending on your subscription settings.

For example:

Question
   ↓
Your Answer
   ↓
Someone Replies
   ↓
Notification

This makes it easier to continue conversations.


Watching a Repository

We discussed Watch earlier in this GitHub series.

Watching a repository means you want GitHub to keep you informed about activity in that repository.

For example:

Repository
     ↓
Watch
     ↓
Receive Relevant Notifications

You can adjust your notification preferences depending on how much activity you want to follow.


Not Watching a Repository

If you aren't watching a repository, that doesn't necessarily mean you'll never receive notifications from it.

You may still receive notifications if:

  • Someone mentions you

  • You're assigned an Issue

  • You're participating in a Pull Request

  • You're involved in a Discussion

  • Another activity directly involves you

This is important to understand.

Not watching a repository doesn't mean you're completely disconnected from it.


Notification Subscriptions

GitHub allows you to control which repository activities you're subscribed to.

Depending on the situation, you may be able to choose options such as:

Not watching
Watching
Custom

A custom configuration can help you receive only the types of activity you care about.


Why Notification Management Matters

Imagine you're watching 100 repositories.

If every repository generates frequent activity, you could receive a huge number of notifications.

Instead of helping you, notifications can become distracting.

A good strategy is:

Important Projects
       ↓
Watch

Occasionally Useful Projects
       ↓
Star

Not Relevant
       ↓
Don't Watch

Star vs Watch vs Notifications

These features are related but different.

FeaturePurpose
⭐ StarSave/bookmark a repository
πŸ‘€ WatchFollow repository activity
πŸ”” NotificationAlert you about relevant activity

For example:

Star
↓
"I want to remember this project."

Watch
↓
"I want to follow this project."

Notification
↓
"Something happened that GitHub wants me to know about."

Email Notifications

GitHub can also send certain notifications through email depending on your notification settings.

This can be useful when you don't regularly check GitHub.

For example:

GitHub Activity
      ↓
Notification
      ↓
Email
      ↓
Your Inbox

However, receiving too many emails can become annoying, so notification preferences are important.


Notification Settings

GitHub provides settings that allow you to control how notifications are delivered and what types of activity you receive.

You can configure preferences related to things such as:

  • GitHub notifications

  • Email notifications

  • Repository subscriptions

  • Watching activity

  • Participating conversations

The exact settings and options can change as GitHub updates its interface.


Marking Notifications as Read

After reviewing a notification, you can mark it as read.

This helps keep your notification inbox organized.

For example:

20 Unread
     ↓
Review Notifications
     ↓
5 Unread

You can continue doing this until your important notifications are handled.


Unsubscribing From a Conversation

Sometimes a conversation becomes too active.

For example:

Issue #100

may have hundreds of comments.

If you're no longer involved, you may be able to unsubscribe from that conversation.

This prevents unnecessary future notifications from that particular thread.


Notification Example

Imagine you're contributing to an open-source project.

You create:

Pull Request #75
Add Dark Mode

A maintainer responds:

Please update the mobile layout.

You receive a notification.

You make the requested changes.

The maintainer reviews them again.

You may receive another notification when the review is completed.

The process looks like:

Pull Request
     ↓
Review
     ↓
Notification
     ↓
Changes Requested
     ↓
Update Code
     ↓
New Review
     ↓
Notification

Notifications for Students

GitHub notifications can be particularly useful for students working on group projects.

Suppose four students are building an application.

Student A → Frontend
Student B → Backend
Student C → Database
Student D → Testing

If Student A needs help from Student C, they can mention them:

@studentC

Can you check the database query?

Student C receives a notification and can respond.


Notifications for Open-Source Contributors

Notifications are especially important when contributing to open-source projects.

You may need to know when:

  • A maintainer comments on your Pull Request

  • Your Pull Request receives a review

  • Someone asks you a question

  • Your Issue receives a response

  • Your contribution is accepted or requires changes

Without notifications, you could miss important communication.


How to Avoid Notification Overload

Notification overload happens when you receive more alerts than you can reasonably process.

Here are some useful practices.

Don't Watch Everything

You don't need to watch every repository you find interesting.

Use Stars for projects you simply want to remember.


Watch Important Projects

Watch projects where you're:

  • Contributing

  • Working with a team

  • Actively following development


Review Notifications Regularly

Don't allow your notification inbox to grow indefinitely.

Set aside time to review important notifications.


Unsubscribe When Appropriate

If you're no longer involved in a conversation, consider unsubscribing from it.


Use Email Settings Carefully

If GitHub emails become overwhelming, review your email notification preferences.


Common Beginner Mistakes

Watching Every Repository

If you watch everything, you'll receive too many notifications.


Confusing Stars With Notifications

Starring a repository is primarily a way to save and show appreciation for it. It isn't the same as subscribing to all of its activity.


Ignoring Mentions

Mentions often indicate that another developer specifically wants your attention.


Leaving Old Subscriptions Active

If you're no longer involved in a project or conversation, unnecessary subscriptions can create noise.


Treating Every Notification as Urgent

Not every notification requires an immediate response.

Prioritize notifications based on importance.


Best GitHub Notification Strategy

A simple system for beginners is:

Important Project
      ↓
Watch

Interesting Project
      ↓
Star

Your Issue / PR
      ↓
Stay Subscribed

Direct Mention
      ↓
Review Promptly

This keeps GitHub useful without allowing notifications to become overwhelming.


Frequently Asked Questions

Can I turn off GitHub notifications?

You can adjust your notification subscriptions and settings to reduce or control notifications.

Some notifications related to activity directly involving you may still be important.


Will I receive a notification when someone mentions me?

Generally, yes. Mentions are one of the primary ways GitHub draws a user's attention to a conversation.


Does starring a repository notify me about every update?

No. Starring and watching serve different purposes.

If you want to follow repository activity, use the appropriate Watch/subscription settings.


Can GitHub send notifications by email?

Yes. GitHub provides email notification options that you can configure.


Can I stop notifications from one Issue?

In many cases, yes. You can manage your subscription to individual conversations.


Should I watch every open-source project I like?

No.

For projects you simply want to remember, starring is usually more appropriate.


Summary

GitHub Notifications keep you informed about activity that matters to you.

They can notify you about:

  • Mentions

  • Issues

  • Pull Requests

  • Reviews

  • Discussions

  • Assignments

  • Repository activity

The key is to manage your subscriptions carefully.

Remember:

⭐ Star
→ Save a repository

πŸ‘€ Watch
→ Follow repository activity

πŸ”” Notification
→ Receive an alert about relevant activity

When used properly, GitHub notifications help you stay connected with projects and collaborators without constantly checking every repository.

Comments

Popular posts from this blog

Understanding Comments in Java: A Beginner’s Guide

When learning Java programming, one of the first concepts you’ll come across is comments . Comments may not affect how a program runs, but they play a crucial role in making code more understandable, readable, and maintainable. Let’s dive deeper into what comments are, why they’re important, and the different types of comments in Java. What are Comments in Java? A comment in Java is a piece of text written within a program that is ignored by the compiler . In other words, comments are notes for humans, not instructions for machines. They help developers explain the purpose of code, describe logic, or temporarily disable certain lines of code without deleting them. Why are Comments Important? πŸ“Œ Readability – Comments make code easier to understand for you and others. πŸ“Œ Maintenance – When you revisit your code after months, comments remind you what you were doing. πŸ“Œ Collaboration – In team projects, comments explain code to fellow developers. πŸ“Œ Debugging – You c...

Java Program to Check Voting Eligibility

In this program, we’ll take the user’s age as input and check whether the person is eligible to vote or not. In India, the minimum age required to vote is 18 years . πŸ’» Program Code // Java Program to Check Voting Eligibility import java.util.Scanner; public class VotingEligibility { public static void main(String[] args) { // Create Scanner object to take input from user Scanner sc = new Scanner(System.in); // Ask user to enter age System.out.print("Enter your age: "); int age = sc.nextInt(); // Check eligibility if (age >= 18) { System.out.println("You are eligible to vote."); } else { System.out.println("You are not eligible to vote yet."); System.out.println("You can vote after " + (18 - age) + " year(s)."); } sc.close(); // Close the scanner } } 🧠 Explanation import java.util.Scanner; → Imp...

Java Program to Calculate Total Marks and Average of Five Subjects

πŸ’‘ Program Explanation In this program: The user will input marks of five subjects . The program will calculate the total marks and average . It will then display both results clearly. πŸ§‘‍πŸ’» Java Code: // Java Program to Calculate Total Marks and Average of Five Subjects import java.util.Scanner; // Importing Scanner class for user input public class TotalAndAverage { public static void main(String[] args) { // Creating Scanner object to take input from user Scanner sc = new Scanner(System.in); // Declaring variables for five subjects double subject1, subject2, subject3, subject4, subject5; // Taking marks input for each subject System.out.print("Enter marks of Subject 1: "); subject1 = sc.nextDouble(); System.out.print("Enter marks of Subject 2: "); subject2 = sc.nextDouble(); System.out.print("Enter marks of Subject 3: "); subject3 = sc.nextDo...