Coder Social home page Coder Social logo

jithub's Introduction

Jithub

A github to jira integration server

The goal of the server is to improve the integration between Jira and Github by providing options not available such as acting upon tag addition/deletion.

Disclaimer

This is very much a work in progress at the moment.

However it is working and usable as is and I will do my best to keep it like this.

Usage

Requirements :

  • Python 3.6+
  • A working JIRA Cloud instance and an application link with oauth authentication
  • A ssh key
  • A github Token

Step 1 :

  • mv config.json.sample config.json
  • Replace default values with your own
  • python oauthflow.py
  • Follow the instructions

At this point you should have an oauth token and a secret for this token.

Step 2 :

Option 1:

This is the best option for testing your configuration locally

  • Set up a ngrok account
  • Download ngrok
  • On your machine:
    • <path-to-ngrok>/ngrok http 34567
    • PORT=34567 python <path-to-jithub>/server.py
  • Set up a webhook in github that send events to the ngrok address

You're all set, Github will start sending events to the Jithub server. Every event that is not yet implemented will result in a 501.

option 2:

This is the best option if you want Jithub for a production setup

Requirements:
  • Any Docker environment: Docker for mac, Vagrant...
  • An account for a service capable of running docker images: Heroku, AWS, GCP...
Building the image:
  • cd <path-to-jithub>
  • docker build -t <fancy-name> .

Now you have a working docker image. I won't cover all the steps to run this images into all the available services but here is a Heroku how-to:

  • heroku login
  • heroku create
  • heroku container:login
  • heroku container:push web
  • heroku container:release web

Now you have Jithub running in heroku under the address given at step 2.

You can set up a github webhook to send events to that address.

jithub's People

Contributors

alariccalmette avatar gyndav avatar

Stargazers

 avatar Yoann Moinet avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

jithub's Issues

Docker base image is way too heavy

Describe the bug
The current image weights a lot for the current amount of code:

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
jithub              latest              38776097a133        12 seconds ago      966MB

I'll suggest using https://docs.docker.com/develop/develop-images/multistage-build/ with a lighter image

To Reproduce
Steps to reproduce the behavior:

  1. docker build -t jithub .
  2. ๐Ÿ˜ข

Expected behavior
Have a lighter base image

Screenshots
None

Desktop (please complete the following information):
None

Additional context
None

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.