pub struct GitHubEventsConfig {
pub enterprise_config_resource_name: Option<String>,
pub installation_id: Option<i64>,
pub name: Option<String>,
pub owner: Option<String>,
pub pull_request: Option<PullRequestFilter>,
pub push: Option<PushFilter>,
}Expand description
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.
This type is not used in any activity, and only used as part of another schema.
Fields§
§enterprise_config_resource_name: Option<String>The resource name of the github enterprise config that should be applied to this installation. For example: “projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}”
installation_id: Option<i64>The installationID that emits the GitHub event.
name: Option<String>Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is “cloud-builders”.
owner: Option<String>Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is “googlecloudplatform”.
pull_request: Option<PullRequestFilter>filter to match changes in pull requests.
push: Option<PushFilter>filter to match changes in refs like branches, tags.
Trait Implementations§
Source§impl Clone for GitHubEventsConfig
impl Clone for GitHubEventsConfig
Source§fn clone(&self) -> GitHubEventsConfig
fn clone(&self) -> GitHubEventsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more