Skip to content

workflow.configure

Assert the contract's repository settings; idempotent drift repair.

Run at repository birth, as release aftercare, after an abort, and at the merge point, where --if-changed makes it classify its own commit and exit fast when no contract path changed. Resolves the admin ladder (FORGE_ADMIN_TOKEN, host-qualified first, the everyday token as the fallback); a refused write teaches the grant and the variable. Declared owners the forge does not know refuse before anything is applied: a review chain pointing at nobody is worse than unapplied settings.

Hidden: this task is not listed by fm --list, --tree or completion — it runs like any other when named.

fm workflow.configure [--if-changed]
Parameter Type Default Description
--if-changed flag false only when HEAD changed a contract or the owners file

Example

$ fm workflow.configure --if-changed