qiitawatcher

package module
v0.0.0-...-1dfb1c5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: MIT Imports: 5 Imported by: 0

README

QiitaWatcher

Bot tool for search posts in the specified Qiita Organization and notify Slack.

Output Examples

Configurations

NAME REQUIRED TYPE NOTES
QIITA_TOKEN STRING Qiita access token
QIITA_ORGANIZATION STRING Qiita Organization ID
CREATED -- STRING(YYYY-MM-DD) Created date for qiita article
SLACK_TOKEN STRING Slack access token
SLACK_CHANNEL STRING Slack chanell

Quick Start

  1. generate watcher access token
  1. run application
$ <set envioromental variables>
$ export GO111MODULE=on
$ go mod init # only initialize
$ go mod tidy
$ go build
$ go run

Deploy Google Cloud Function

Deploy to GCP Cloud Functions(HTTP)

$ gcloud functions --project ${project} deploy main \
--entry-point Receive \
--runtime go111 \
--set-env-vars QIITA_TOKEN=${qiita token},QIITA_ORGANIZATION=${qiita organization},SLACK_TOKEN=${slack token},SLACK_CHANNEL=${slack channel} \
--trigger-http

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Receive

func Receive(w http.ResponseWriter, r *http.Request)

http endpoint for Google Cloud Function

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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