Integration with GitHub Issues Tracker?

Just curious if anybody has integrated the ERPNext Support module and GitHub issues tracking. It seems like it would be a natural fit since the Frappe team uses GitHub for issue tracking, and I presume they use ERPNext to run the Frappe business.

If there is no integration, do you have any ideas on the best way to make one?

i think this way you can connect Github from ERPNext
Python

import requests

def handler(pd: "pipedream"):
  token = f'{pd.inputs["github"]["$auth"]["oauth_access_token"]}'
  authorization = f'Bearer {token}'
  headers = {"Authorization": authorization}
  r = requests.get('https://api.github.com/user', headers=headers)
  return r.json()

Javascript

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    github: {
      type: "app",
      app: "github",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.github.com/user`,
      headers: {
        Authorization: `Bearer ${this.github.$auth.oauth_access_token}`,
      },
    })
  },
})
1 Like

Check this app. It has doctype called Improvement which is created/updated using hook events. It syncs Github PRs.

If you can create github webhook that pushes data on creation/update of github issue, write whitelisted function in your custom app to pick up data and update Issue doctype.

2 Likes