Update

Learn how to modify a dashboard.

Command

$ vela update dashboard <parameters...> <arguments...>

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
iduuid for the dashboardVELA_DASHBOARD_ID, DASHBOARD_ID
namename for the dashboardVELA_DASHBOARD_NAME, DASHBOARD_NAME
add-reposlist of repositories to add for the dashboardVELA_DASHBOARD_ADD_REPOS, DASHBOARD_ADD_REPOS
drop-reposlist of repositories to remove from the dashboardVELA_DASHBOARD_DROP_REPOS, DASHBOARD_DROP_REPOS
target-reposlist of repositories to target for updates for the dashboardVELA_DASHBOARD_TARGET_REPOS, DASHBOARD_TARGET_REPOS
add-adminslist of admins to add for the dashboardVELA_DASHBOARD_ADD_ADMINS, DASHBOARD_ADD_ADMINS
drop-adminslist of admins to remove from the dashboardVELA_DASHBOARD_DROP_ADMINS, DASHBOARD_DROP_ADMINS
branchesfilter builds in all repositories by branchVELA_DASHBOARD_REPOS_BRANCH, DASHBOARD_REPOS_BRANCH
eventsfilter builds in all repositories by eventVELA_DASHBOARD_REPOS_EVENT, DASHBOARD_REPOS_EVENT
outputformat the output for the dashboardVELA_OUTPUT, DASHBOARD_OUTPUT

Sample

Request

$ vela update dashboard --id d3040cd7-9bb6-45d1-a2a1-d794483a902c --name 'Octocat Dev Branches' --target-repos octocat/Hello-world,octocat/Spoon-Knife --branches dev

Response

{
  Name: Octocat Dev Branches,
  ID: d3040cd7-9bb6-45d1-a2a1-d794483a902c,
  Admins: [{
  Active: true,
  Admin: false,
  Dashboards: [],
  Favorites: [],
  ID: 1,
  Name: octokitty,
  Token: ,
}],
  CreatedAt: 1716572402,
  CreatedBy: octokitty,
  UpdatedAt: 1716572402,
  UpdatedBy: octokitty,
  Repos: [{
  Name: octocat/Hello-World,
  ID: 1,
  Branches: [dev],
  Events: [],
} {
  Name: octocat/Spoon-Knife,
  ID: 2,
  Branches: [dev],
  Events: [],
}],
}

Examples

EXAMPLES:
  1. Update a dashboard to add a repository.
    $ vela update dashboard --id c8da1302-07d6-11ea-882f-4893bca275b8 --add-repos Org-1/Repo-1
  2. Update a dashboard to remove a repository.
    $ vela update dashboard --id c8da1302-07d6-11ea-882f-4893bca275b8 --drop-repos Org-1/Repo-1
  3. Update a dashboard to add event and branch filters to specific repositories.
    $ vela update dashboard --id c8da1302-07d6-11ea-882f-4893bca275b8 --target-repos Org-1/Repo-1,Org-2/Repo-2 --branches main --events push
  4. Update a dashboard to change the name.
    $ vela update dashboard --id c8da1302-07d6-11ea-882f-4893bca275b8 --name MyDashboard
  5. Update a dashboard to add an admin.
    $ vela update dashboard --id c8da1302-07d6-11ea-882f-4893bca275b8 --add-admins JohnDoe
  6. Update a dashboard to remove an admin.
    $ vela update dashboard --id c8da1302-07d6-11ea-882f-4893bca275b8 --drop-admins JohnDoe