Giter Club home page Giter Club logo

github-interaction-worker's Introduction

About

Discord interaction for cloudflare workers to query GitHub pull requests, issues, and commits and display them in your Discord server.

Secrets

  • GITHUB_TOKEN GitHub access token to make queries with
  • DISCORD_CLIENT_SECRET Discord Application public key

Use wrangler secret SECRET_NAME to modify secrets for your worker.

Configuration (wrangler.toml)

  • DEFAULT_REPO_OWNER Repository owner name to default to, if none is provided.
  • DEFAULT_REPO Repository name to default to, if none is provided.

Note: Make sure to also update this in the model.json field descriptions.

Contributing

If you wish to contribute, feel free to fork the repository and submit a pull request. I use ESLint to enforce a consistent code style.

git clone https://github.com/almostSouji/github-interaction-worker.git
npm install

Remember to always lint your work before making a commit to ensure everything is lined up and consistent with the rest of the codebase.

Testing changes

Please test the application locally or on your own CF worker before submitting a PR.

yarn lint:fix
yarn build
npx wrangler deploy ./src/index.ts

Deploying commands

If you are changing the command model, you will need to register the command(s) with an external tool (curl, postman, insomnia, thunder, etc.)

Author

github-interaction-worker © almostSouji.
Authored and maintained by almostSouji.

GitHub @almostSouji

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.