Code Monkey home page Code Monkey logo

gitgram's Introduction

Gitpod ready-to-code

GitGram - Github Integration for Telegram Bot API

Setup:

  • Install all requirements, pip3 install -r requirements.txt
  • Copy config.sample.py, edit and save as config.py
  • Run python3 GitGram.py

Deploy on Heroku:

If you want to deploy this app on Heroku, there's a one-click setup for that. Click below, fill up the form and hit Deploy App.

Deploy

Try on Gitpod:

  1. Login to Gitpod.
  2. Open this repo in Gitpod.
  3. After workspace build, dependencies will be installed.
  4. Follow step 2 and 3 in Setup section.

gitgram's People

Contributors

ajhalili2006 avatar customicon avatar deepsource-autofix[bot] avatar deepsourcebot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gitgram's Issues

.

.

Org Webhooks in GitHub receive 500 errors when sent a payload

What I Expect

An 200 OK status that tells that it works.

The Error

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

Payload

{
  "zen": "Design for failure.",
  "hook_id": 227066614,
  "hook": {
    "type": "Organization",
    "id": 227066614,
    "name": "web",
    "active": true,
    "events": [
      "*"
    ],
    "config": {
      "content_type": "json",
      "insecure_ssl": "0",
      "url": "https://gitgram-thepinsteam.herokuapp.com/-1001219904005"
    },
    "updated_at": "2020-06-21T09:40:28Z",
    "created_at": "2020-06-21T09:40:28Z",
    "url": "https://api.github.com/orgs/Git-Gram/hooks/227066614",
    "ping_url": "https://api.github.com/orgs/Git-Gram/hooks/227066614/pings"
  },
  "organization": {
    "login": "Git-Gram",
    "id": 67222277,
    "node_id": "MDEyOk9yZ2FuaXphdGlvbjY3MjIyMjc3",
    "url": "https://api.github.com/orgs/Git-Gram",
    "repos_url": "https://api.github.com/orgs/Git-Gram/repos",
    "events_url": "https://api.github.com/orgs/Git-Gram/events",
    "hooks_url": "https://api.github.com/orgs/Git-Gram/hooks",
    "issues_url": "https://api.github.com/orgs/Git-Gram/issues",
    "members_url": "https://api.github.com/orgs/Git-Gram/members{/member}",
    "public_members_url": "https://api.github.com/orgs/Git-Gram/public_members{/member}",
    "avatar_url": "https://avatars0.githubusercontent.com/u/67222277?v=4",
    "description": ""
  },
  "sender": {
    "login": "AndreiJirohHaliliDev2006",
    "id": 34998342,
    "node_id": "MDQ6VXNlcjM0OTk4MzQy",
    "avatar_url": "https://avatars1.githubusercontent.com/u/34998342?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/AndreiJirohHaliliDev2006",
    "html_url": "https://github.com/AndreiJirohHaliliDev2006",
    "followers_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/followers",
    "following_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/following{/other_user}",
    "gists_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/subscriptions",
    "organizations_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/orgs",
    "repos_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/repos",
    "events_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/events{/privacy}",
    "received_events_url": "https://api.github.com/users/AndreiJirohHaliliDev2006/received_events",
    "type": "User",
    "site_admin": false
  }
}

Webhooks compartility list

The webhooks compatibility list below is currently work-in-progress and will update as more information are available.

GitHub

Project-wide

  • Commits
  • GitHub Actions (workflows, failed and success checks) - partial support
    • GitHub Pages
    • Statuses
    • [x}
  • Issues and PRs
  • Stars
  • Watchers
  • Forks
  • PR Review Comments
  • Projects
    • Project columns
  • Visibility changes - partial support
  • Registry packages
  • Deployments
  • Deployment statuses
  • Repository vulnerability alerts
  • Releases
  • Wiki
  • Branch or tag creation/deletion
  • Commit comments

Org-wide

  • Repositories
  • Test payloads (Related issue: #11)
  • Repo imports

Integrations

  • CircleCI
  • Docker Hub
  • Codacy
  • Heroku
  • Cirrus CI

GitLab

Currently on partial support. See also #9.

  • Push events
    • Commits
    • Tags
  • Comments
  • Issues and MRs
    • Confidental ones
  • CI/CD
    • Job events
    • Pipeline events
    • Deployment events
  • Wiki Page events

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.