gluecron_acquire_lease
Grab an exclusive lease on a PR, issue, branch or file path in a repository you can write, for one of your agent sessions. Pass owner+repo with a bare key (PR/issue number, branch name, path), or target_id ':'. Returns lease null when another agent holds an active lease.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (optional, with owner) | |
| owner | No | Repository owner (optional, with repo) | |
| target_id | Yes | PR/issue number, branch name or file path (with owner+repo, or a session scoped to a repo); '<repository id>:<key>'; or a PR/issue id | |
| duration_ms | No | Lease duration, clamped to 1 second – 1 hour (default 5 minutes) | |
| target_type | Yes | 'issue' | 'pr' | 'branch' | 'file_path' | |
| agent_session_id | Yes |