Giter Site home page Giter Site logo

github2twitter's Introduction

github2twitter js-happiness-style

publish github notifications to twitter

GH2TW Logo

This app check Github's user's received events API every 5 minutes and publish any new event to a twitter account. This app can be deployed with docker.

Usage

:; docker-compose up -d

Stagger

If there are more than 1 event to update, the updates are staggered out in 1 minute interval by default. This stagger interval can be changed through the environment variable TWITTER_STAGGER.

Private Events

If a GITHUB_TOKEN env variable is set, the app will authorize with Github's API and get private events as well. If it is not set, it defaults to public events.

Environment Variables needed to run

  • GITHUB_USERNAME
  • GITHUB_TOKEN (optional, enable private events)
  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • TWITTER_ACCESS_TOKEN
  • TWITTER_ACCESS_TOKEN_SECRET
  • TWITTER_STAGGER (optional, default to 60000 (1 minute))

These should be declared in a .env file.

Sample .env file:

GITHUB_TOKEN=632ad16ec20ddssaf7436d2daffds9da8a14f965c
GITHUB_USERNAME=tnguyen14
TWITTER_ACCESS_TOKEN=26dfad503-hg7A8CwVHdfdafeU1CWSdfyAOWhAUp
TWITTER_ACCESS_TOKEN_SECRET=dfddsfadfsdf342432413eadsM3Q3LbdfafhnZadfesM
TWITTER_CONSUMER_KEY=oTtYUU30adFdDtmJjrOgwj6Q
TWITTER_CONSUMER_SECRET=RkAw4Zx8Dadfad34DDDA3xzMu19gBCddKQvM5AUU2J3zSm8

License

Copyright (c) 2015 Tri Nguyen Licensed under the MIT license.

github2twitter's People

Contributors

tnguyen14 avatar

Watchers

James Cloos avatar  avatar  avatar

github2twitter's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Stagger not working?

The stagger function doesn't seem to be working right? Perhaps write a test for it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.