You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
skills: stop writing new code with legacy ops, lead with refs
Reorder the policy documentation so the per-ref `refs` claim is presented as
the way to add branch protection. The repo-wide `ops` claim is now labeled
"legacy — do not use in new code" and explicitly redirects to the equivalent
`refs: [{ pattern: '*', ops: [...] }]` form. The example procedure (Mint a
Force-Push-Prevented Remote URL) and the JWT payload example are updated to
use `refs` so anyone copying from the skill writes the modern form.
| Pagination | Cursor-based. Pass `next_cursor` as `cursor` param. Stop when `has_more: false`. |
940
943
| Blob data encoding | Always base64. Max 4 MiB per chunk. Use multiple chunks for large files. |
941
944
|`expected_head_sha`| Optimistic lock. Provide current branch tip SHA to enforce fast-forward semantics. |
942
-
| Policy ops | JWT-level guards via `ops` (repo-wide) or `refs` (per-ref, first match wins). `no-force-push` (TS/Py `OP_NO_FORCE_PUSH`, Go `OpNoForcePush`) blocks non-FF updates; `no-push` (`OP_NO_PUSH`/`OpNoPush`) blocks pushes to matching refs. |
945
+
| Policy ops | JWT-level guards via `refs` (per-ref, first match wins; preferred). `no-force-push` (TS/Py `OP_NO_FORCE_PUSH`, Go `OpNoForcePush`) blocks non-FF updates; `no-push` (`OP_NO_PUSH`/`OpNoPush`) blocks pushes to matching refs. Top-level `ops` is a legacy alias on URL-minting methods only. |
943
946
| Merge endpoint |`POST /repos/merge`; strategies: `merge`, `ff_only`, `ff_prefer`; optional `squash` (not with `ff_only`). 409 on conflict. |
0 commit comments