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.
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 --jsonFor 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,orgfor the repository's GitHub account, orrepo); - 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_changeis false andrequiresnames 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
| Tier | What it is | Who changes it | Settings |
|---|---|---|---|
| 1 | Day-to-day operation | A 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 |
| 2 | Loosens a limit on agents | Only a person, never an agent, whatever its role | self_approval, approver_auto_merge, federation_approvals, attribution, org_attribution, workflow_guard, release_refs, workflow_dispatch_refs, repo_agent_scope, merge_queue_target |
| 3 | Acts as a person or issues a credential | Only a person, from a page or command they run themselves | actions_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_mergeandfederation_approvals, each with where its value comes from (repository,orgdefault, or built-indefault), andreview_defaults, the server's defaults for the repository's GitHub account;approval_status(whether Stamp postsstamp/approval),attributionandorg_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_viewandrepo_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 listsays 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_serveroranother_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.yamlwith amerge_holdorpolicystep (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/REPOfor the repository's agent scope;- asking an owner or admin to change it on the page
nextnames:stamp people adminslists 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.