A GitHub Action for creating a new issue from a template file.
Branch: master
Clone or download
Latest commit d10d7bc Feb 17, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests Use the logger Feb 17, 2019
.dockerignore Rename dockerignore to lowercase Nov 9, 2018
.gitignore ▶️ Init to winit Nov 9, 2018
.travis.yml Add Codecov and Travis Nov 10, 2018
Dockerfile Switch to alpinen Feb 17, 2019
LICENSE Create LICENSE Nov 10, 2018
README.md Update README.md Dec 3, 2018
codecov.yml Add Codecov and Travis Nov 10, 2018
entrypoint.js Success log Feb 17, 2019
index.js Use the logger Feb 17, 2019
package-lock.json Updoot the do Feb 17, 2019
package.json Updoot the do Feb 17, 2019


Create an Issue Action

A GitHub Action that creates a new issue using a template file.

Build Status Codecov


This GitHub Action creates a new issue based on an issue template file. Here's an example workflow that creates a new issue any time you push a commit:

workflow "Create an issue on push" {
  on = "push"
  resolves = ["Create issue"]

action "Create issue" {
  uses = "JasonEtco/create-an-issue@master"
  secrets = ["GITHUB_TOKEN"]

This reads from the .github/ISSUE_TEMPLATE.md file. This file should have front matter to help construct the new issue:

title: Someone just pushed
  - JasonEtco
  - bug
Someone just pushed, oh no! Here's who did it: {{ payload.sender.login }}

You'll notice that the above example has some {{ mustache }} variables. Your issue templates have access to everything about the event that triggered the action. Here is a list of all of the available template variables.


Additionally, you can use the date filter and variable to show some information about when this issue was created:

title: Weekly Radar {{ date | date('dddd, MMMM Do') }}
What's everyone up to this week?

This example will create a new issue with a title like Weekly Radar Saturday, November 10th. You can pass any valid Moment.js formatting string to the filter.

Custom templates

Don't want to use .github/ISSUE_TEMPLATE.md? You can pass an argument pointing the action to a different template:

action "Create issue" {
  uses = "JasonEtco/create-an-issue@master"
  secrets = ["GITHUB_TOKEN"]
  args = ".github/some-other-template.md"