Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

Commit 80bcd01

Browse files
committed
Fixed failing webhook due to invalid reference
1 parent e82f1c8 commit 80bcd01

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

CHANGELOG

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
terraform-aws-github-ci-0.4.2 (2017-04-12)
2+
3+
* Fixed #10: Webhook fails due to invalid reference
4+
15
terraform-aws-github-ci-0.4.1 (2017-04-01)
26

37
* Fixed #5: Removed default for namespace variable
@@ -18,7 +22,7 @@ terraform-aws-github-ci-0.2.0 (2017-12-02)
1822

1923
terraform-aws-github-ci-0.1.1 (2017-11-15)
2024

21-
* Fixed missing lambda distribution files
25+
* Fixed missing distribution files
2226
* Fixed invalid source location for initial status badge
2327

2428
terraform-aws-github-ci-0.1.0 (2017-11-15)

share/lambda/dist/status.zip

0 Bytes
Binary file not shown.

share/lambda/dist/webhook.zip

-4 Bytes
Binary file not shown.

share/lambda/src/webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if (process.env.GITHUB_OAUTH_TOKEN)
9090
*/
9191
export default (event: GitHubWebhookEvent, _: Context, cb: Callback) => {
9292
event.Records.reduce((promise, record) => {
93-
const type = record.Sns.MessageAttributes!["X-Github-Event"].StringValue
93+
const type = (record.Sns.MessageAttributes!["X-Github-Event"] as any).Value
9494
const message: GitHubSourceChange = JSON.parse(record.Sns.Message)
9595

9696
/* Retrieve commit SHA and reference */

0 commit comments

Comments
 (0)