Skip to content

Commit feb634f

Browse files
authored
Merge pull request awsdocs#30 from linghaoz/patch-1
Update GitHub and GHE webhook sample
2 parents 08af32d + 6a12a39 commit feb634f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc_source/sample-github-enterprise.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GitHub Enterprise Sample for CodeBuild<a name="sample-github-enterprise"></a>
22

3-
AWS CodeBuild supports GitHub Enterprise as a source repository\. This sample shows how to set up your CodeBuild projects when your GitHub Enterprise repository has a certificate installed\. It also shows how to enable webhooks so that CodeBuild rebuilds the source code every time a code change is pushed to your private GitHub Enterprise repository\.
3+
AWS CodeBuild supports GitHub Enterprise as a source repository\. This sample shows how to set up your CodeBuild projects when your GitHub Enterprise repository has a certificate installed\. It also shows how to enable webhooks so that CodeBuild rebuilds the source code every time a code change is pushed to your GitHub Enterprise repository\.
44

55
## Prerequisites<a name="sample-github-enterprise-prerequisites"></a>
66

@@ -123,4 +123,4 @@ If you need to generate a payload URL and secret key again, you must first delet
123123
1. Enter the payload URL and secret key, accept the defaults for the other fields, and then choose **Add webhook**\.
124124
![\[Image NOT FOUND\]](http://docs.aws.amazon.com/codebuild/latest/userguide/images/ghe-webhook.png)![\[Image NOT FOUND\]](http://docs.aws.amazon.com/codebuild/latest/userguide/)![\[Image NOT FOUND\]](http://docs.aws.amazon.com/codebuild/latest/userguide/)
125125

126-
1. Return to your CodeBuild project\. Close the **Create webhook** dialog box and choose **Start build**\.
126+
1. Return to your CodeBuild project\. Close the **Create webhook** dialog box and choose **Start build**\.

doc_source/sample-github-pull-request.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# GitHub Pull Request and Webhook Filter Sample for CodeBuild<a name="sample-github-pull-request"></a>
22

3-
AWS CodeBuild now supports webhooks, when the source repository is GitHub\. This means that for an AWS CodeBuild build project that has its source code stored in a private GitHub repository, webhooks enable AWS CodeBuild to rebuild the source code every time a code change is pushed to the private repository\.
3+
AWS CodeBuild now supports webhooks, when the source repository is GitHub\. This means that for an AWS CodeBuild build project that has its source code stored in your GitHub repository, webhooks enable AWS CodeBuild to rebuild the source code every time a code change is pushed to the connected repository\.
4+
5+
**Note**
6+
We recommend that you use a [filter group](#sample-github-pull-request-filter-webhook-events) to specify which GitHub users can trigger a build in a public repository. This can prevent a user from triggering an unexpected build.
47

58
## Create a Build Project with GitHub as the Source Repository and Enable Webhooks \(Console\)<a name="sample-github-pull-request-running"></a>
69

@@ -282,4 +285,4 @@ CodeBuildProject:
282285
- Type: FILE_PATH
283286
Pattern: READ_ME
284287
ExcludeMatchedPattern: true
285-
```
288+
```

0 commit comments

Comments
 (0)