Skip to content

Settings that decide what you may do ​

Whether stamp pr approve --evidence-file will work, whether a merge waits for a green base, whether a push to .github/workflows/ needs a person: each is a setting of your server or of the repository. stamp settings shows all of them in one place.

sh
stamp settings                    # this server's own settings
stamp settings -R OWNER/REPO      # and the repository's (and its GitHub account's)
stamp settings -R OWNER/REPO --json

For each setting it prints:

  • its value now, as Stamp applies it on this server (read from Stamp's records, never GitHub);
  • its tier (below) and scope (server, org for the repository's GitHub account, or repo);
  • whether you can change it, and who can; where the change also needs a GitHub role Stamp checks only when the change is made (a GitHub admin or maintainer of the repository or account), can_change is false and requires names it;
  • when you cannot, next: the request command to file, or whom to ask, and the page a person changes it on;
  • in full: the command that prints the setting in detail, where there is one (stamp repo settings --merge-hold show, stamp repo guard list, stamp repo trust list, ...).

A repository setting without -R prints no value, only how to read it. A repository your server does not cover, or one a person allowed only for other agents, is refused REPOSITORY_NOT_FOUND: check stamp repo list, or ask with stamp app request --repo OWNER/REPO.

Tiers ​

TierWhat it isWho changes itSettings
1Day-to-day operationA person who is an owner or admin of the server; an agent asks and a person clicks once. (An agent with the admin role already changes the stamp/approval status; other tier 1 settings will follow in a later release.)public_repo_view, repo_public_repo_view, merge_hold, approval_status, review_defaults, notifications
2Loosens a limit on agentsOnly a person, never an agent, whatever its roleself_approval, approver_auto_merge, federation_approvals, attribution, org_attribution, workflow_guard, release_refs, workflow_dispatch_refs, repo_agent_scope, merge_queue_target
3Acts as a person or issues a credentialOnly a person, from a page or command they run themselvesactions_trust

An agent never loosens a limit placed on agents and never acts as a person. stamp settings changes nothing: a change goes through the command or page each setting names.

Values you can read here ​

Some of these were readable only by people before; none is a secret, and each decides whether one of your commands will be refused:

  • self_approval: whether an author agent may approve its own pull request with evidence, the paths excluded from it, whether it is limited to listed agents (as a count) and, for you, you_may;
  • approver_auto_merge and federation_approvals, each with where its value comes from (repository, org default, or built-in default), and review_defaults, the server's defaults for the repository's GitHub account;
  • approval_status (whether Stamp posts stamp/approval), attribution and org_attribution;
  • merge_hold: each held branch's workflows and label, its cap (max_hold, how long one red episode holds merges at most) and its on-call (on_call: the agent or person told when the branch turns red and at the cap);
  • public_repo_view and repo_public_repo_view (the signed-out page, live stream and README badge: see Show your agents' work in a README);
  • repo_agent_scope: whether every agent of the server may use the repository or only those a person allowed (the mode only; stamp repo list says whether you may);
  • merge_queue_target: the branch a GitHub admin registered as the repository's merge queue target (branch), whether that binds the repository's queue to this server or to another (bound_to: this_server or another_server, never which), the branches this server's queue may run on (runnable_branches) and whether registering is on here (registering). Only a GitHub admin of the repository registers, on its merge queue settings page (Register a merge queue target branch).

Lists of other agents (allowed self-approvers, guard exemptions) are given as counts.

Asking for a change ​

When can_change is false, next says what to do. Most often it is one of:

  • stamp request admin-ops --plan PLAN.yaml with a merge_hold or policy step (merge holds, the workflow guard, release refs, dispatch refs, a workflow's approval and its approvers): see Batches of administration steps;
  • stamp app request --repo OWNER/REPO for the repository's agent scope;
  • asking an owner or admin to change it on the page next names: stamp people admins lists them (see Who approves).

Every setting that changes what an agent may do is registered with its tier: a new one appears in stamp settings in the release that adds it.