GithubHelp home page GithubHelp logo

connectionmaster / gitlab-hook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gitlabhq/gitlab-hook

0.0 0.0 0.0 32 KB

Web appliction that listens to post-hooks from GitLab and tweets about it.

gitlab-hook's Introduction

GitLab Hook

  • If you're missing GitHub Twitter hook when using GitLab, you just found a solution.

Installation

Twitter

  • Log into https://dev.twitter.com/apps
  • Click on Create a new application.
  • Fill out everything needed and click on Create your Twitter application.
  • Now in Settings tab, set Access: to Read and Write and save it.
  • Keep this page open or copy all the tokens and keys from Details tab. You'll need them in a while.

Bit.ly

  • If you don't have account on bit.ly, create one.
  • Log into your account, and copy your Api Key from Settings tab.

Your computer

  • Clone this repository: git clone [email protected]:SmartMedia/gitlab-hook.git
  • Create Heroku Cedar application: heroku create <APP_NAME> --stack cedar
  • Setup variables based on your Twitter Details and Bitly Settings tab:
  • For GITLAB_ACCESS_TOKEN use some random string.
heroku config:add \
GITLAB_ACCESS_TOKEN='' \
BITLY_USERNAME='' \
BITLY_API_KEY='' \
TWITTER_CONSUMER_KEY='' \
TWITTER_CONSUMER_SECRET='' \
TWITTER_OAUTH_TOKEN='' \
TWITTER_OAUTH_TOKEN_SECRET=''
  • Put your
  • If you want to test localy, setup the same variables used by application in all *.yml.erb files in config directory.
  • git push heroku

GitLab

  • Open your project.
  • Select Hooks tab.
  • Fill out URL of your Heroku app with access_token parameter. (eg. http://<APP_NAME>.herokuapp.com/?access_token=<GITLAB_ACCESS_TOKEN>)
  • Press "Test Hook"
  • Enjoy your Twitter timeline.

gitlab-hook's People

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.