Code Monkey home page Code Monkey logo

ascbot's Introduction

This is an asyncio bot for monitoring repos. Right now, the bot is setup as me. In the future the bot should be the ascbot.

Environment Variables

The following environment variables need to be set in order for this bot to operate:

  • GH_AUTH: This is the authentication token for the user/bot that is going to be interacting with the GitHub API.
  • GH_SECRET: This is the secret for the repo that is generated when the webhook is created.

Deploying

  1. Make changes to this repo, PR in the changes, get a review, and get merged.
  2. This will automatically fire a hub.docker.com build under the USGS-Astrogeology organization
  3. Navigate to the asc-gitbot repo on the internal gitlab instance, select CI / CD -> Pipelines from the left hand menus, and click the big green Run Pipelines button. I have been having to run this twice recently as the first attempt seems to fail.

Debugging

The bot is running inside a docker container in a docker swarm, so you can use standard docker debugging techniques to get into the container and see what is going on. A nice enhancement might be a persistent, external to the container log file to avoid having to ever access the container.

Tests

Tests are written using PyTest. To run the tests, we suggest first creating an environment using requirements-dev.txt. Then execute pytest ascbot from the repository root directory.

ascbot's People

Contributors

jlaura avatar

Watchers

 avatar  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.