set_branch_governance
Set or clear branch governance rules, enabling evaluation of pull request, merge, release, and publish actions against defined workflow state.
Instructions
Declare or clear branch and release governance so PR, merge, release, and publish actions can be evaluated against explicit workflow state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchName | No | Optional branch name the governance applies to | |
| baseBranch | No | Protected base branch for merge and release operations (defaults to main) | |
| prRequired | No | Whether this lane must go through a pull request (defaults to true) | |
| prNumber | No | Optional pull request number once a PR exists | |
| prUrl | No | Optional pull request URL once a PR exists | |
| queueRequired | No | Whether the target branch requires a merge queue | |
| localOnly | No | When true, PR, merge, release, and publish actions are blocked for this lane | |
| releaseVersion | No | Expected package version for release or publish actions | |
| releaseEvidence | No | Optional evidence or release plan note for the governed version | |
| releaseSensitiveGlobs | No | Optional custom globs that define release-sensitive files for this branch lane | |
| clear | No | Clear the current branch governance state instead of setting it |