CmdID / aws / aws codebuild
aws codebuild create-webhook
For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository. AWS CLI reference
7 options Its page in the AWS CLI reference
Options
--branch-filterA regular expression used to determine which repository branches are built when a webhook is triggered.--build-typeSpecifies the type of build this webhook will trigger.--filter-groupsAn array of arrays of WebhookFilter objects used to determine which webhooks are triggered.--manual-creationIf manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook.--project-nameThe name of the CodeBuild project.--pull-request-build-policyA PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests.--scope-configurationThe scope configuration for global or organization webhooks.