Reference
apex approval
Runs from forks: what is waiting for approval, deciding it, and which ones wait
apex approval [command]Examples
Runs from forks waiting for somebody to approve them.
apex approval listApprove one: it runs without secrets, on a runner of its own.
apex approval approve 4812Hold only first-time contributors’ pull requests from forks, as GitHub does by default.
apex approval policy acme/web first-timeSubcommands
apex approval listRuns from a fork waiting for an Owner or Admin to approve themapex approval approveApprove one run from a fork — it starts with no secrets and on a runner of its ownapex approval rejectReject one run from a fork — every job fails and the attempt is closedapex approval policyWhich pull requests from forks wait for approval on a repository; with a policy, set it (an Owner or Admin)
apex approval list
Runs from a fork waiting for an Owner or Admin to approve them
apex approval list [options]With an API token, needs the permission approvals:read.
| Option | Description |
|---|---|
--json | machine-readable output |
apex approval approve
Approve one run from a fork — it starts with no secrets and on a runner of its own
apex approval approve [options] <run-id>With an API token, needs the permission approvals:write.
| Argument | Description |
|---|---|
<run-id> | run id (apex approval list prints them) |
| Option | Description |
|---|---|
--comment <text> | recorded with the decision |
apex approval reject
Reject one run from a fork — every job fails and the attempt is closed
apex approval reject [options] <run-id>With an API token, needs the permission approvals:write.
| Argument | Description |
|---|---|
<run-id> | run id (apex approval list prints them) |
| Option | Description |
|---|---|
--comment <text> | recorded with the decision |
apex approval policy
Which pull requests from forks wait for approval on a repository; with a policy, set it (an Owner or Admin)
apex approval policy [options] <repository> [policy]With an API token, needs the permission administration:write.
| Argument | Description |
|---|---|
<repository> | owner/repo |
[policy] | one of every-fork, external, first-time, first-time-new-to-github |
| Option | Description |
|---|---|
--json | machine-readable output |