| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public Triggers.Builder branchProtectionRule(BranchProtectionRuleOptions branchProtectionRule)
Triggers.getBranchProtectionRule()branchProtectionRule - Runs your workflow anytime the branch_protection_rule event occurs.this@Stability(value=Experimental) public Triggers.Builder checkRun(CheckRunOptions checkRun)
Triggers.getCheckRun()checkRun - Runs your workflow anytime the check_run event occurs.this@Stability(value=Experimental) public Triggers.Builder checkSuite(CheckSuiteOptions checkSuite)
Triggers.getCheckSuite()checkSuite - Runs your workflow anytime the check_suite event occurs.this@Stability(value=Experimental) public Triggers.Builder create(CreateOptions create)
Triggers.getCreate()create - Runs your workflow anytime someone creates a branch or tag, which triggers the create event.this@Stability(value=Experimental) public Triggers.Builder delete(DeleteOptions delete)
Triggers.getDelete()delete - Runs your workflow anytime someone deletes a branch or tag, which triggers the delete event.this@Stability(value=Experimental) public Triggers.Builder deployment(DeploymentOptions deployment)
Triggers.getDeployment()deployment - Runs your workflow anytime someone creates a deployment, which triggers the deployment event.
Deployments created with a commit SHA may not have
a Git ref.this@Stability(value=Experimental) public Triggers.Builder deploymentStatus(DeploymentStatusOptions deploymentStatus)
Triggers.getDeploymentStatus()deploymentStatus - Runs your workflow anytime a third party provides a deployment status, which triggers the deployment_status event.
Deployments created with a
commit SHA may not have a Git ref.this@Stability(value=Experimental) public Triggers.Builder discussion(DiscussionOptions discussion)
Triggers.getDiscussion()discussion - Runs your workflow anytime the discussion event occurs.
More than one activity type triggers this event.this@Stability(value=Experimental) public Triggers.Builder discussionComment(DiscussionCommentOptions discussionComment)
Triggers.getDiscussionComment()discussionComment - Runs your workflow anytime the discussion_comment event occurs.
More than one activity type triggers this event.this@Stability(value=Experimental) public Triggers.Builder fork(ForkOptions fork)
Triggers.getFork()fork - Runs your workflow anytime when someone forks a repository, which triggers the fork event.this@Stability(value=Experimental) public Triggers.Builder gollum(GollumOptions gollum)
Triggers.getGollum()gollum - Runs your workflow when someone creates or updates a Wiki page, which triggers the gollum event.this@Stability(value=Experimental) public Triggers.Builder issueComment(IssueCommentOptions issueComment)
Triggers.getIssueComment()issueComment - Runs your workflow anytime the issue_comment event occurs.this@Stability(value=Experimental) public Triggers.Builder issues(IssuesOptions issues)
Triggers.getIssues()issues - Runs your workflow anytime the issues event occurs.this@Stability(value=Experimental) public Triggers.Builder label(LabelOptions label)
Triggers.getLabel()label - Runs your workflow anytime the label event occurs.this@Stability(value=Experimental) public Triggers.Builder milestone(MilestoneOptions milestone)
Triggers.getMilestone()milestone - Runs your workflow anytime the milestone event occurs.this@Stability(value=Experimental) public Triggers.Builder pageBuild(PageBuildOptions pageBuild)
Triggers.getPageBuild()pageBuild - Runs your workflow anytime someone pushes to a GitHub Pages-enabled branch, which triggers the page_build event.this@Stability(value=Experimental) public Triggers.Builder project(ProjectOptions project)
Triggers.getProject()project - Runs your workflow anytime the project event occurs.this@Stability(value=Experimental) public Triggers.Builder projectCard(ProjectCardOptions projectCard)
Triggers.getProjectCard()projectCard - Runs your workflow anytime the project_card event occurs.this@Stability(value=Experimental) public Triggers.Builder projectColumn(ProjectColumnOptions projectColumn)
Triggers.getProjectColumn()projectColumn - Runs your workflow anytime the project_column event occurs.this@Stability(value=Experimental) public Triggers.Builder publicValue(PublicOptions publicValue)
Triggers.getPublicValue()publicValue - Runs your workflow anytime someone makes a private repository public, which triggers the public event.this@Stability(value=Experimental) public Triggers.Builder pullRequest(PullRequestOptions pullRequest)
Triggers.getPullRequest()pullRequest - Runs your workflow anytime the pull_request event occurs.this@Stability(value=Experimental) public Triggers.Builder pullRequestReview(PullRequestReviewOptions pullRequestReview)
Triggers.getPullRequestReview()pullRequestReview - Runs your workflow anytime the pull_request_review event occurs.this@Stability(value=Experimental) public Triggers.Builder pullRequestReviewComment(PullRequestReviewCommentOptions pullRequestReviewComment)
Triggers.getPullRequestReviewComment()pullRequestReviewComment - Runs your workflow anytime a comment on a pull request's unified diff is modified, which triggers the pull_request_review_comment event.this@Stability(value=Experimental) public Triggers.Builder pullRequestTarget(PullRequestTargetOptions pullRequestTarget)
Triggers.getPullRequestTarget()pullRequestTarget - This event runs in the context of the base of the pull request, rather than in the merge commit as the pull_request event does.
This prevents
executing unsafe workflow code from the head of the pull request that
could alter your repository or steal any secrets you use in your workflow.
This event allows you to do things like create workflows that label and
comment on pull requests based on the contents of the event payload.
WARNING: The pull_request_target event is granted read/write repository
token and can access secrets, even when it is triggered from a fork.
Although the workflow runs in the context of the base of the pull request,
you should make sure that you do not check out, build, or run untrusted
code from the pull request with this event. Additionally, any caches
share the same scope as the base branch, and to help prevent cache
poisoning, you should not save the cache if there is a possibility that
the cache contents were altered.
this@Stability(value=Experimental) public Triggers.Builder push(PushOptions push)
Triggers.getPush()push - Runs your workflow when someone pushes to a repository branch, which triggers the push event.this@Stability(value=Experimental) public Triggers.Builder registryPackage(RegistryPackageOptions registryPackage)
Triggers.getRegistryPackage()registryPackage - Runs your workflow anytime a package is published or updated.this@Stability(value=Experimental) public Triggers.Builder release(ReleaseOptions release)
Triggers.getRelease()release - Runs your workflow anytime the release event occurs.this@Stability(value=Experimental) public Triggers.Builder repositoryDispatch(RepositoryDispatchOptions repositoryDispatch)
Triggers.getRepositoryDispatch()repositoryDispatch - You can use the GitHub API to trigger a webhook event called repository_dispatch when you want to trigger a workflow for activity that happens outside of GitHub.this@Stability(value=Experimental) public Triggers.Builder schedule(List<? extends CronScheduleOptions> schedule)
Triggers.getSchedule()schedule - You can schedule a workflow to run at specific UTC times using POSIX cron syntax.
Scheduled workflows run on the latest commit on the default or
base branch. The shortest interval you can run scheduled workflows is
once every 5 minutes.this@Stability(value=Experimental) public Triggers.Builder status(StatusOptions status)
Triggers.getStatus()status - Runs your workflow anytime the status of a Git commit changes, which triggers the status event.this@Stability(value=Experimental) public Triggers.Builder watch(WatchOptions watch)
Triggers.getWatch()watch - Runs your workflow anytime the watch event occurs.this@Stability(value=Experimental) public Triggers.Builder workflowCall(WorkflowCallOptions workflowCall)
Triggers.getWorkflowCall()workflowCall - Can be called from another workflow.this@Stability(value=Experimental) public Triggers.Builder workflowDispatch(WorkflowDispatchOptions workflowDispatch)
Triggers.getWorkflowDispatch()workflowDispatch - You can configure custom-defined input properties, default input values, and required inputs for the event directly in your workflow.
When the
workflow runs, you can access the input values in the github.event.inputs
context.this@Stability(value=Experimental) public Triggers.Builder workflowRun(WorkflowRunOptions workflowRun)
Triggers.getWorkflowRun()workflowRun - This event occurs when a workflow run is requested or completed, and allows you to execute a workflow based on the finished result of another workflow.
A workflow run is triggered regardless of the result of the
previous workflow.this@Stability(value=Experimental) public Triggers build()
build in interface software.amazon.jsii.Builder<Triggers>TriggersNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.