/changelog-nightly-parser

A lambda function that parses the Changelog Nightly page and upload a JSON file with the URLs to Github.

Primary LanguageGoMIT LicenseMIT

changelog-nightly-parser

GoDoc Build Status Coverage Status Go Report Card

A lambda function that parses the Changelog Nightly page for the last night (http://nightly.changelog.com/YYYY/MM/DD) and uploads to GitHub the list of trending repositories found (as a JSON file).

How to use

Define the following environment variables in configuration of AWS Lambda:

  • GITHUB_REPOSITORY - name of repository to which to upload the JSON file (eg. "trending-daily").
  • GITHUB_OWNER - Github username (eg. "myusername")
  • GITHUB_TOKEN - Github personal token (eg. "myusername")

How to build

First build the application as linux executable:

GOOS=linux GOARCH=amd64 go build -o main
zip main.zip main

or

GOOS=linux GOARCH=amd64 go build -o main
build-lambda-zip.exe -o main.zip main

if using Windows as build environment.

Then deploy main.zip via the AWS console or the cli tool.