gh-template-bot
gh-template-bot copied to clipboard
🤖 Generate PR Description from Templates for Different Issues and PR
trafficstars
GitHub Template Bot
:robot: Generate Markdown Templates for different Issues, Pull Requests and even Feature Requests
Quick Start
-
Install Template Bot at GitHub Apps Page
-
Now you can type one of these commands in issue/PR then submit
/template issuefor general issues/template featureto Propose a Feature in issue/template prfor general pull request/template ReplyDupto fetch your own.github/ReplyDup.mdtemplate/templateto ask :robot: for help
- Refresh the page. Template Bot will create Markdown Template for you :tada:
Demo


Forgot command? Don't worry. Bot will help you :100:
Why
We create issues for different purposes:
Report a Bug, Propose a Feature, Asking for Help ...
But we are used to setup one ISSUE_TEMPLATE.md for our workflow.
So Template Bot is built to generate templates for different scenarios.
Dev Guide
Run on Local Machine
- Requirements
- Node >= 10
- Yarn >= 1.3.2
- Environment
- create file
.envfrom.env.example - edit
.envand setAPP_IDaccording to your GitHub App - download private key to project root according to your GitHub App
- NOTE: to create and config a Github App please follow this Probot doc
- create file
- Install and Run
$ yarn --pure-lockfile
$ yarn run start:nodemon
Test
$ yarn run jest
Deploy to Heroku
$ sh jobs/deploy-heroku.sh
Notes
- Inspired by evenchange4/gh-polls-bot, a Bot creating polls in your issues
- Built with probot, an api-friendly nodejs bot framework
- Built with
create-probot-appboilerplate for quick start - Deployed on Heroku following this doc by Probot
CONTRIBUTING
CHANGELOG
LICENSE
MIT license https://liuderchi.mit-license.org