Skip to main content

View

Command

$ vela view hook <parameters...> <arguments...>
tip

For more information, you can run vela view hook --help.

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
orgname of organization for the hookVELA_ORG, HOOK_ORG
reponame of repository for the hookVELA_REPO, HOOK_REPO
hooknumber of the hookVELA_HOOK, HOOK_NUMBER
outputformat the output for the hookVELA_OUTPUT, HOOK_OUTPUT
tip

This command also supports setting the following parameters via a configuration file:

  • org
  • repo
  • output

For more information, please review the CLI config documentation.

Permissions

COMING SOON!

Sample

warning

This section assumes you have already installed and setup the CLI.

To install the CLI, please review the installation documentation.

To setup the CLI, please review the authentication documentation.

Request

$ pwd
~/github/octocat
$ vela view hook --hook 1

Targeted Request

$ vela view hook --org github --repo octocat --hook 1

Response

id: 1
repo_id: 1
build_id: 1
number: 1
source_id: c8da1302-07d6-11ea-882f-4893bca275b8
created: 1563475419
host: github.com
event: push
branch: main
error:
status: success
link: https://github.com/github/octocat/settings/hooks/1