Coder Social home page Coder Social logo

jupyterlab-bot's Introduction

Jupyterlab Bot Service

This application is freely hosted on Heroku.

The application can be fount at this endpoint.

This application is heavily inspired by Conda Forge.

Usage

Cancelling duplicate builds

  • Duplicate builds on PRs are automatically cancelled after a timeout of some seconds to account for the time between the pull_request event and the start of the github actions workers.

Installing the WebHook

Install a webhook on your repo:

  • Payload URL: https://jupyterlab-bot.herokuapp.com/hooks/github
  • Content Type: application/json
  • Select Let me select invidual events
  • Select Pull requests and Pushes
  • Ensure Active is checked
  • Click Update webhook

Development

Installation

conda create --name jupyterlab-bot python>=3.6 pygithub tornado pre-commit --channel conda-forge
conda activate jupyterlab-bot
pip install -e .
pre-commit install

Local Usage

python run.py

Open a browser and search for http://localhost:5000/.

Also browse to /hooks/github and verify page render.

Release

You will need to have an account in both Heroku and Docker.

Log in to Heroku and get Docker credentials:

heroku login
heroku container:login

If creating, run:

heroku create jupyterlab-bot

Otherwise, run:

heroku git:remote -a jupyterlab-bot

Then run:

heroku container:push web
heroku container:release web
heroku open

Browse to /hooks/github and verify page render.

Heroku Configuration

You will need a Github token with access to cancel builds. This

This needs to be setup on the Heroku Application settings

On the Config Vars. section set a key GITHUB_ACCESS_TOKEN with the value of the generated token.

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.