Skip to content
Rehearsev1.2.0

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.

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.

announce.yaml
changes:
- scenario: 'greeting.hurl#The greeting says hello'
why: The greeting is warmer.

Check it, then commit it with the change.

Terminal
$ rehearse validate announce announce.yaml
announce.yaml meets the announce schema.

Pass the file to every comparison of the pull request, including the one in CI.

Terminal
$ rehearse compare --announce announce.yaml
0 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.