Get repository permissions
get_repository_permissionsCheck which actions an authenticated account can perform on a repository—pull, push, and admin—by supplying its numeric ID. Use this to diagnose 403 errors without guessing.
Instructions
What the authenticated account may do with this repository: pull, push and admin. Woodpecker inherits these from the forge, so this answers "why was that 403" without guessing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | Numeric repository id. lookup_repository turns an "owner/name" pair into one; list_repositories shows both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |