Announce a change in a pull request
Keep the announcement in the pull request, so its comparison tells what the change meant from what slipped.
Commit the announcement
Section titled “Commit the announcement”Write announce.yaml at the repository’s root, beside the change. Each entry names a scenario by its id, or a glob
over ids, and says why in one line.
changes: - scenario: 'greeting.hurl#The greeting says hello' why: The greeting is warmer.Check it, then commit it with the change.
$ rehearse validate announce announce.yamlannounce.yaml meets the announce schema.Compare with it
Section titled “Compare with it”Pass the file to every comparison of the pull request, including the one in CI.
$ rehearse compare --announce announce.yaml0 as on the base · 1 changed and said so (1 announced)
changed and said so: The greeting says hello (greeting.hurl:2) — announced: The greeting is warmer. $.text: "Hello" → "Hello, friend"
1 id, time or opaque value was set aside before comparing.1 base observation came from the cache (63e7527b08a5).The greeting changed and said so, and the comparison exits 0. Rehearse’s default, .rehearse/announce.yaml, sits in
a folder git ignores, so it never reaches the pull request: commit the file elsewhere. Delete it once the change
merges. Announce what a change changes says what else an announcement shows.