GithubHelp home page GithubHelp logo

liuderchi / gh-template-bot Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 4.0 154 KB

๐Ÿค– Generate PR Description from Templates for Different Issues and PR

Home Page: https://github.com/apps/template

License: MIT License

JavaScript 97.71% Shell 2.29%
bot probot-app github-app issue-template pr-template

gh-template-bot's Introduction

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

gh-template-bot's People

Contributors

dependabot[bot] avatar liuderchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gh-template-bot's Issues

Cannot Use Custom Feature Template

I have created a custom feature template and yet it still keeps pointing back to your template.
The other custom templates I have created like PR and ISSUE are working just great. Thanks for this wonderful tool.

Chrome Extension

When working with non-technical people, a slash command is already a step too far.

I request a browser extension which adds a dropdown box to the new issue form so the creator can select a template and prefill the textarea.

Thank you.

Custom templates

Hey @liuderchi, this is really awesome! I have a feature request:

What if you could have your own custom templates? For example, imagine typing this:

/template bug-report Everything is broken!

And it would read from a file like this, maybe stored in the repo's .github folder:

%DESCRIPTION%

## Bug report
...

And fill in the %DESCRIPTION% with the second part of the command. What do you think?

Add comment templates

I help triage issues on a repository, and it would be really useful if I could just put /reply duplicate 1234 or /reply repro-steps in a comment and have my comment edited into a helpful response for the OP.

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.