GithubHelp home page GithubHelp logo

kevalpatel2106 / github-issue-cloud-function Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 5.0 231 KB

๐Ÿ”ฅ Firebase cloud function to post a GitHub issue whenever new crash๐Ÿž reported in firebase crashalytics.

License: Apache License 2.0

JavaScript 100.00%
crash-reporting crashlytics github-issues cloud-function-for-firebase firebase crash-reporting-tool

github-issue-cloud-function's Introduction

GitHub Issue Creator

๐Ÿ”ฅ Firebase cloud function to post a GitHub issue whenever new crash๐Ÿž reported in firebase crashalytics.

Identify important conversion workflows in your app, so that when a new issue is reported in that workflow via Crashlytics, an GitHub issue is generated for you.. This will allow you to react quicker to crashes that impact important conversion workflows of your app.

Note: Crashlytics is a crash reporter for Firebase. This assumes that you have Crashlytics in Firebase. Learn more about Crashlytics

Setting up the sample

  • Create and setup the Firebase project:

    • Create a Firebase project using the Firebase Developer Console.
    • Enable Billing on your Firebase the project by switching to the Blaze plan, this is currently needed to be able to perform HTTP requests to external services from a Cloud Function.
    • Include Crashlytics in your project.
  • Configuring the sample

    • Clone or download this repo and open the root directory.
    • You must have the Firebase CLI installed. If you don't have it, install it with npm install -g firebase-tools and then configure it with firebase login.
    • Configure the CLI locally by using firebase use --add and select your project in the list.
    • Install npm dependencies in the functions directory locally, by running: cd functions; npm install;
  • Setting up an Personal API tokens for GitHub

    • Set up an Personal API tokens in the account from which you want to post new issues. Note down the access token.
    • Config and set the environment variable for the access token and the GitHub repo (in which the new issues will be generated) by running this command: firebase functions:config:set github.base_url="https://api.github.com" github.token="<<Personal API tokens>>" issue.title="<<Title of the issue>>" issue.body="<<Text to start body of all issue with.>>" issue.lable="<<Issue lable>>" repo.owner="<<GitHub repo owner>>" repo.repo_name="<<>GitHub project name>"

Deploy and test

  • Deploy your project using firebase deploy
  • Simulate a test crash. Instructions

Sample issue:

sample issue

How to contribute?

Questions?๐Ÿค”

Hit me on twitter Twitter

License

Copyright 2017 Keval Patel

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

github-issue-cloud-function's People

Contributors

kevalpatel2106 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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