changelog-nightly-parser

command module
v0.0.0-...-4c469e6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 16 Imported by: 0

README

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.

Documentation

Overview

changelog-nightly-parser is an AWS Lambda function that visits the Changelog Nightly page, extracts the URLs of trending repositories found and stores them as a JSON file the the specified Github repository.

Three environment variables have to be defined for the Lambda function to work: - 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")

Jump to

Keyboard shortcuts

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