Skip to content

New and Improved Service Hook Payloads

The service hook payloads now have the following new fields: distinct=true for commits that are new to the repository created=true for new branches deleted=true for branch deletions base=NAME for the…

Author

The service hook payloads now have the following new fields:

  • distinct=true for commits that are new to the repository
  • created=true for new branches
  • deleted=true for branch deletions
  • base=NAME for the base ref associated with a new branch

The campfire service hook now uses these new fields to improve messages sent to campfire:

Merges

Before, merges would replay existing commits that were merged into the branch:

image

Now, these distinct=false commits are ignored so only new commits show up:

image

This means that clean fast-forward merges no longer produce any campfire activity.

Forced Pushes

image

New Branches

New branches created via git push origin base:new show the name of the base branch:

image

Branches created locally with commits show what’s new:

image

Deleted Branches

image

Note: Service hooks were not previously fired on branch deletions. CI and other endpoints that do not care about branch deletions can ignore deleted=true payloads.

Explore more from GitHub

Product

Product

Updates on GitHub products and features, hot off the press.
GitHub Universe 2024

GitHub Universe 2024

Get tickets to the 10th anniversary of our global developer event on AI, DevEx, and security.
GitHub Copilot

GitHub Copilot

Don't fly solo. Try 30 days for free.
Work at GitHub!

Work at GitHub!

Check out our current job openings.