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:
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-toolsand then configure it with
- Configure the CLI locally by using
firebase use --addand select your project in the list.
npmdependencies 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
- Simulate a test crash. Instructions
How to contribute?
- Check out contribution guidelines
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
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.