hive-forge repo-create: say the account can't create repos instead of a bare 500
This commit is contained in:
parent
5b319e0600
commit
6ec12e7d84
1 changed files with 83 additions and 19 deletions
|
|
@ -224,16 +224,18 @@ plain comment show under `last comment`, not `reviews`.
|
|||
|
||||
### Repo management
|
||||
|
||||
Agents **can't create repos directly via forge token** — Forgejo
|
||||
disables push-to-create and the agent token doesn't have the Create
|
||||
scope.
|
||||
Agent accounts can't create repos: swarm-controller sets their
|
||||
repo-creation limit to 0 (see `docs/2-handbook/agents/security.md`), so
|
||||
an operator merge stays the only path to main. Ask the operator to
|
||||
create the repo (for example `agents/<name>`) and add you as a
|
||||
collaborator. Forgejo also disables push-to-create.
|
||||
|
||||
The CLI verbs below (`repo-create` / `repo-add-collaborator`) use the
|
||||
agent's own forge token, so a repo lands under the agent's user account
|
||||
or an org the agent belongs to.
|
||||
`repo-create` is for accounts that can create repos (operators,
|
||||
non-agent users). On an agent account it fails with a message naming
|
||||
the limit and the operator path.
|
||||
|
||||
**`repo-create <name>`** — create a repo under the authenticated user
|
||||
and print its URL. Key flags:
|
||||
and print its URL. Not available to agent accounts. Key flags:
|
||||
|
||||
- `--org <ORG>` — create under an org namespace instead
|
||||
- `--private` — private repo (default: public)
|
||||
|
|
|
|||
Loading…
Reference in a new issue