daneden / Zeitgeist

👁 An iOS app for keeping an eye on your Vercel deployments
http://zeitgeist.daneden.me
Apache License 2.0
190 stars 7 forks source link

Show deploy hook name as reason for new build #69

Closed Sam-Apostel closed 2 years ago

Sam-Apostel commented 2 years ago

There are a few reasons a new deployment can start. It would be more clear if the notifications reflect those reasons.

reasons

Git hook Manual Deploy hooks

data

Vercel let's users name deploy hooks and those names can be found in the metadata of a deployment.

eg:

{
  ...
  "meta": {
    ...
    "deployHookId": "...",
    "deployHookRef": "master",
    "deployHookName": "my-custom-deploy-hook-name"
  },
  ...
}
daneden commented 2 years ago

Thanks so much for doing this extra bit of digging! I can definitely incorporate this into deployment information and notifications. I'll plan on adding this to v3 which is in progress: #67

daneden commented 2 years ago

Hey @Sam-Apostel! I'm pleased to report that notifications now display the deploy hook's name when caused by a deploy hook, instead of the git commit message. This change could be implemented on the notification server-side, so there's no need to even update your app. I'm looking forward to introducing better support for deploy hooks in the upcoming v3 release!

Sam-Apostel commented 2 years ago

For future reference. The top notification is the new functionality.

image