aderaaij / wp-vercel-deploy-hooks

WordPress Plugin to trigger Vercel deploy hooks on command / update
GNU General Public License v3.0
71 stars 18 forks source link

Feature/watch deploy status #17

Closed annalisaantonioli closed 1 month ago

annalisaantonioli commented 1 month ago

I've tried to create a "watch status" using Vercel API, jquery and Wordpress transient so

  1. once the deploy is triggered, vercel API is called with params (timestamp) in order to get the latest deploy ID
  2. with the ID, deploy information can be retrieved and stored in the transient with an interval
  3. once the status change from "Building" to "Ready" or "Canceled" or whatever, the interval is cleared and the status updated also in transient
  4. The information is passed to jquery in order to notify the deploy ended
aderaaij commented 1 month ago

@annalisaantonioli thank you so much for the contribution, this looks great! I'm honestly not actively maintaining this plugin anymore but did merge your PR. If you have any interest in maintaining this plugin, please let me know and i'd gladly transfer it to you

aderaaij commented 1 month ago

Excellent stuff, thank you for the PR @annalisaantonioli. As I don't work with WordPress that much anymore I will accept and merge this PR but won't be testing it. If you or anyone else would like to maintain this repo, feel free to reach out

annalisaantonioli commented 1 month ago

Hey @aderaaij , thanks! It definitely needs some improvements, but it's a start. Yeah, I wouldn't mind to maintain the plugin