cr_buildtrigger_edit: Updates a 'BuildTrigger' by its project ID and trigger...

Description Usage Arguments See Also Examples

View source: R/buildtriggers.R

Description

Seems not to work at the moment (issue #16)

Usage

1

Arguments

BuildTrigger

The BuildTrigger object to update to

triggerId

ID of the 'BuildTrigger' to edit or a previous BuildTriggerResponse object that will be edited

projectId

ID of the project that owns the trigger

See Also

Other BuildTrigger functions: BuildTrigger(), GitHubEventsConfig(), cr_buildtrigger_copy(), cr_buildtrigger_delete(), cr_buildtrigger_get(), cr_buildtrigger_list(), cr_buildtrigger_repo(), cr_buildtrigger_run(), cr_buildtrigger()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 

github <- GitHubEventsConfig("MarkEdmondson1234/googleCloudRunner",
                            branch = "master")
bt2 <- cr_buildtrigger("trig2",
                       trigger = github,
                       build = "inst/cloudbuild/cloudbuild.yaml")
bt3 <- BuildTrigger(
  filename = "inst/cloudbuild/cloudbuild.yaml",
  name = "edited1",
  tags = "edit",
  github = github,
  disabled = TRUE,
  description = "edited trigger")

edited <- cr_buildtrigger_edit(bt3, triggerId = bt2)


## End(Not run)

googleCloudRunner documentation built on Jan. 31, 2021, 1:05 a.m.