DSACMS / iv-cbv-payroll

Creative Commons Zero v1.0 Universal
2 stars 1 forks source link

Add `bin/will-deploy` script to help communicate about deploys #269

Closed tdooner closed 5 days ago

tdooner commented 1 week ago

Ticket

N/A

Changes

This script does a few things:

  1. Fetches the latest code
  2. Determines which commits have landed on main but haven't yet been deployed to production (according to the production /health endpoint.)
  3. Formats a list of those commits suitable for pasting into slack.

It will recognize any 4-digit number followed by a colon in the commit message title, and auto-link the Jira ticket (e.g. "FFS-1234:" or "1234:")

In Terminal:

image

In Slack:

image

Context for reviewers

Hopefully when we automate deploys a bit better, we can call this script in CI or something, but until then, this may be helpful for standardizing the format of these messages.

Testing

Tested locally.