Dismiss a maintenance duty's finding for seven days (#13967)

A forge admin who is a person can set a duty's finding aside for seven days, with a reason. The reason is required (at most 200 characters) and stays on the duty's row in maintenance_duty_state (dismissed_until, dismissed_reason): shown while the finding is hidden ("dismissed until <day>: <why>") and again once it returns ("dismissed until <day>, now back: <why>"). The weekly line reads maintenance_run, never this, so a dismissed finding still counts there. Both doors call dismiss in src/maintain/dismiss.ts, so they say the same words.

A missing reason, a reason over 200 characters or an unknown duty is refused and stores nothing.

Tests: test/maintain-dismiss.test.ts.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs