/gh-template-bot

🤖 Generate PR Description from Templates for Different Issues and PR

Primary LanguageJavaScriptMIT LicenseMIT

GitHub Template Bot

Build Status Dependency Status DevDependency Status PeerDependency Status license

🤖 Generate Markdown Templates for different Issues, Pull Requests and even Feature Requests

Quick Start

  1. Install Template Bot at GitHub Apps Page

  2. Now you can type one of these commands in issue/PR then submit

  • /template issue for general issues
  • /template feature to Propose a Feature in issue
  • /template pr for general pull request
  • /template ReplyDup to fetch your own .github/ReplyDup.md template
  • /template to ask 🤖 for help
  1. Refresh the page. Template Bot will create Markdown Template for you 🎉

Demo

demo1


demo2


Forgot command? Don't worry. Bot will help you 💯

demo3

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 .env from .env.example
    • edit .env and set APP_ID according 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
  • Install and Run
$ yarn --pure-lockfile
$ yarn run start:nodemon

Test

$ yarn run jest

Deploy to Heroku

$ sh jobs/deploy-heroku.sh

Notes

LICENSE

MIT license https://liuderchi.mit-license.org