-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update usage and reference to include build approval (#393)
- Loading branch information
Showing
3 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: "Approve" | ||
linkTitle: "Approve" | ||
description: > | ||
Learn how to approve a build as a repository admin. | ||
--- | ||
|
||
## Command | ||
|
||
``` | ||
$ vela approve build <parameters...> <arguments...> | ||
``` | ||
|
||
{{% alert color="info" %}} | ||
For more information, you can run `vela approve build --help`. | ||
{{% /alert %}} | ||
|
||
## Parameters | ||
|
||
The following parameters are used to configure the command: | ||
|
||
| Name | Description | Environment Variables | | ||
| -------- | ---------------------------------- | --------------------------------- | | ||
| `org` | name of organization for the build | `VELA_ORG`, `BUILD_ORG` | | ||
| `repo` | name of repository for the build | `VELA_REPO`, `BUILD_REPO` | | ||
| `build` | number of the build | `VELA_BUILD`, `BUILD_NUMBER` | | ||
| `output` | format the output for the build | `VELA_OUTPUT`, `BUILD_OUTPUT` | | ||
|
||
{{% alert color="info" %}} | ||
This command also supports setting the following parameters via a configuration file: | ||
|
||
- `org` | ||
- `repo` | ||
- `output` | ||
|
||
For more information, please review the [CLI config documentation](/docs/reference/cli/config/). | ||
{{% /alert %}} | ||
|
||
## Permissions | ||
|
||
COMING SOON! | ||
|
||
## Sample | ||
|
||
{{% alert color="warning" %}} | ||
This section assumes you have already installed and setup the CLI. | ||
|
||
To install the CLI, please review the [installation documentation](/docs/reference/cli/install/). | ||
|
||
To setup the CLI, please review the [authentication documentation](/docs/reference/cli/authentication/). | ||
{{% /alert %}} | ||
|
||
#### Request | ||
|
||
```sh | ||
$ pwd | ||
~/github/octocat | ||
$ vela approve build --build 1 | ||
``` | ||
|
||
#### Targeted Request | ||
|
||
```sh | ||
$ vela approve build --org github --repo octocat --build 1 | ||
``` | ||
|
||
#### Response | ||
|
||
```sh | ||
"successfully approved build github/octocat/1" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters