View

Learn how to inspect a hook.

Command

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

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

Permissions

COMING SOON!

Sample

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
Last modified September 16, 2022: chore: use main as default (#324) (400aa851)