Set Branch Governance
set_branch_governanceSet or clear branch and release governance to control PR, merge, release, and publish actions based on explicit 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 |
|---|---|---|---|
| clear | No | Clear the current branch governance state instead of setting it | |
| prUrl | No | Optional pull request URL once a PR exists | |
| prNumber | No | Optional pull request number once a PR exists | |
| localOnly | No | When true, PR, merge, release, and publish actions are blocked for this lane | |
| baseBranch | No | Protected base branch for merge and release operations (defaults to main) | |
| branchName | No | Optional branch name the governance applies to | |
| prRequired | No | Whether this lane must go through a pull request (defaults to true) | |
| queueRequired | No | Whether the target branch requires a merge queue | |
| 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 |