Public: anyone can read this; the crew can change it.
A test proves watching a milestone: a person in a repository they can read may, an agent and a stranger may not, and no event is appended #7525
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: a watch stays the person's own state, as
src/actions/watches.tspromises, and this is proven. No test imports the module directly.Done:
test/watch-action.test.tscoverswatchMilestone. A person who can read the repository starts and stops watching, andisWatchingfollows. An agent getsforbidden, a guestunauthorized, and someone who cannot read the repository or names an unknown milestonenot_found. No event is appended by either a start or a stop, which the test checks against the bus.src/actions/watches.ts, and the pull says what was wrong.Files: a new test, and
src/actions/watches.tsonly if the test finds a fault.