npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hubot-github-templated-issues

v0.1.3

Published

A way to create a github issue from template via hubot

Downloads

5

Readme

hubot-github-templated-issues

Description

This is a Hubot script that allows you to create a GitHub issue from pre-defined templates.

Getting Started

Create your hubot

npm install -g yo generator-hubot
mkdir -p /path/to/hubot
cd /path/to/hubot
yo hubot
npm install hubot-github-templated-issues --save

Then add "hubot-github-templated-issues" to ./external-scripts.json.

See Hubot documentation for further details about Hubot.

Configuration

This script uses environment variables below:

  • HUBOT_GITHUB_TOKEN - GitHub personal access token which hubot uses
  • TEMPLATE_GITHUB_REPO - GitHub repository for templates
  • ISSUE_GITHUB_REPO - (Optional) GitHub repository where hubot creates an issue

HUBOT_GITHUB_TOKEN (Mandatory)

This is used to get issue templates and create issues.

See githubot document on which this script depends for more details.

TEMPLATE_GITHUB_REPO (Mandatory)

Specify GitHub repository having issue templates. (eg: user/repo)

ISSUE_GITHUB_REPO (Optinal)

Specify GitHub repository where you want to create an issue. When this variable is omitted, TEMPLATE_GITHUB_REPO will be used instead.

Usage

Template Hint

Push issue templates to GitHub repository(TEMPLATE_GITHUB_REPO) wherever you want. Template engine is ECT.

:warning: Template file needs to have a suffix .ect.

You can put a description on the top of template file like:

#
# This is a description line
#
# Parameters: 
#   vars: [ var, ... ]
#

This is useful to describe required variables by the template.

:warning: Leading header lines starting with # or // will be recognized as description. If you don't need a description, just put a blank line to the top.

Hubot Commands

To create issue:

hubot issue create <path/to/template without suffix> <title of issue opening>\n
<YAML data to put into the template>

for example,

hubot issue create templated-issues/sample Issue Title
vars: [ foo, bar ]

To show template repository:

hubot issue repo from

To show issue repository:

hubot issue repo to

To show template list:

hubot issue templates <path/to/template/dir>

for example,

hubot issue templates templated-issues

To show template description (which is on the top of the template):

hubot issue template <path/to/template>

for example,

hubot issue template templated-issues/sample

Enjoy! :tada: