Giter Club home page Giter Club logo

edit_bot's Introduction

GitHub App

GitHub App using

  • Python 3.7
  • gidgethub
  • aiohttp
  • pyjwt
  • cryptography

See requirements.txt.

When the command line script is run, the GitHub App will open an issue in the repo.

GitHub App Creation

  1. Create a GitHub App. Give it the necessary permission. Read and write access is needed to access Issues.

  2. Have a user install the app.

  3. Record the App ID. It can be found in the App's settings under "About" heading.

  4. Generate a private key for the app here

Local environment setup

  1. Install the dependencies, preferably using a virtual environment. For example:

    python3.7 -m venv venv
    source venv/bin/activate
    python -m pip install -U pip
    python -m pip install -r requirements.txt
    
  2. Create the environment variable GH_APP_ID. (obtained from GitHub App Creation step 3 ). For example:

    export GH_APP_ID=1235
    
  3. Create the environment variable `PEM_FILE_PATH```, that is the path to the private key file (downloaded in GitHub App Creation step 4). For example::

    export PEM_FILE_PATH=./my-app.2018-11-11.private-key.pem
    
  4. Run the command line script:

    python3 __main__.py
    

edit_bot's People

Contributors

pyup-bot avatar mariatta avatar elpaisano avatar dependabot[bot] avatar

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.