Skip to content

github and notitifications #144934

Answered by Amrit1604
stefanw1337 asked this question in General
Nov 18, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

To get notified only when there’s a new commit on the master branch, try the following methods:

Option 1: GitHub Notifications (Filtered)
Watch the repository, but select "Custom" instead of "All activity."
Enable "Pushes" and uncheck "Pull Requests". This reduces noise from merges and PRs from other branches.
Option 2: GitHub Actions (Custom Notification)
If you have access to the repository, create a GitHub Action that triggers only on master branch commits:

name: Notify on Master Commit

on:
  push:
    branches:
      - master

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - name: Send Notification
        run: curl -X POST -H "Content-Type: application/json" \
         …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stefanw1337
Comment options

@stefanw1337
Comment options

Answer selected by stefanw1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants