promote github fields to GA (#4373) (#362)

Co-authored-by: upodroid <cy@borg.dev>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: upodroid <cy@borg.dev>
This commit is contained in:
The Magician 2021-01-11 13:07:20 -08:00 committed by GitHub
commit 4b8faad30b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 277 additions and 0 deletions

View file

@ -223,6 +223,71 @@ resources:
SHA must be provided.
returned: success
type: str
github:
description:
- Describes the configuration of a trigger that creates a build whenever a GitHub
event is received.
returned: success
type: complex
contains:
owner:
description:
- 'Owner of the repository. For example: The owner for U(https://github.com/googlecloudplatform/cloud-builders)
is "googlecloudplatform".'
returned: success
type: str
name:
description:
- 'Name of the repository. For example: The name for U(https://github.com/googlecloudplatform/cloud-builders)
is "cloud-builders".'
returned: success
type: str
pullRequest:
description:
- filter to match changes in pull requests. Specify only one of pullRequest
or push.
returned: success
type: complex
contains:
branch:
description:
- Regex of branches to match.
returned: success
type: str
commentControl:
description:
- Whether to block builds on a "/gcbrun" comment from a repository owner
or collaborator.
returned: success
type: str
invertRegex:
description:
- If true, branches that do NOT match the git_ref will trigger a build.
returned: success
type: bool
push:
description:
- filter to match changes in refs, like branches or tags. Specify only one
of pullRequest or push.
returned: success
type: complex
contains:
invertRegex:
description:
- When true, only trigger a build if the revision regex does NOT match
the git_ref regex.
returned: success
type: bool
branch:
description:
- Regex of branches to match. Specify only one of branch or tag.
returned: success
type: str
tag:
description:
- Regex of tags to match. Specify only one of branch or tag.
returned: success
type: str
build:
description:
- Contents of the build template. Either a filename or build template must be