mdn / stumptown-deployer

🚢 those static Stumptown sites
Mozilla Public License 2.0
4 stars 6 forks source link

Wrap CLI in posting to a GitHub PR #3

Open peterbe opened 5 years ago

peterbe commented 5 years ago

One of the most plausible ways to use stumptown-deployer is within a pull request. The participants of the PR will want to find out what happened to the stumptown-deployer and the best way to do that would be to communicate by posting a issue comment on the PR. Similar to how Codecov does it.

We should have 3 possible things that it can post about:

  1. It successfully created a bucket/cloudfront and here's the URL to it.
  2. It successfully updated a bucket and these were the files that were updated.
  3. Something crashed or broke or failed and if you're nerdy, here's the error. (Assert that an error don't ever include the mention of the credentials)