github-issue-opener

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 2 Imported by: 0

README

lambda-github-issue-opener

A serverless application to open a GitHub issue by SNS notification.

An issue will be opend when a notification like following example reaches to this function.

{
    "Type": "Notification",
    "MessageId": ...,
    "TopicArn": ...,
    "Subject": "Issue subject",
    "Message": "Issue body",
    "Timestamp": ...,
    "SignatureVersion": ...,
    "Signature": ...,
    "SigningCertURL": ...,
    "UnsubscribeURL": ...
}

Build

go get github.com/bradleyfalzon/ghinstallation
go get github.com/google/go-github/v18/github
go get github.com/aws/aws-sdk-go/service/secretsmanager
go get github.com/aws/aws-sdk-go/aws/session
go get github.com/aws/aws-lambda-go/lambda
go get github.com/aws/aws-lambda-go/events
GOOS=linux make main.zip

Run locally

You should install aws-sam-cli before follow the instructions.

cp template.json.example template.json
# And edit the template.json according to your environment
sam local invoke "GitHubIssueOpener" -t template.json

Customize and deploy

TBD

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mozamimy/lambda-github-issue-opener.

License

This code is available as open source under the terms of the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL