cli/command
Mislav Marohnić d5ba3de751 Add template support to issue create, pr create
If multiple templates are found, the user is prompted to select one.

The templates are searched for, in order of preference:

- issues:
  1. `.github/ISSUE_TEMPLATE/*.md`
  2. `.github/ISSUE_TEMPLATE.md`
  3. `ISSUE_TEMPLATE/*.md`
  4. `ISSUE_TEMPLATE.md`
  5. `docs/ISSUE_TEMPLATE/*.md`
  6. `docs/ISSUE_TEMPLATE.md`

- pull requests:
  1. `.github/PULL_REQUEST_TEMPLATE/*.md`
  2. `.github/PULL_REQUEST_TEMPLATE.md`
  3. `PULL_REQUEST_TEMPLATE/*.md`
  4. `PULL_REQUEST_TEMPLATE.md`
  5. `docs/PULL_REQUEST_TEMPLATE/*.md`
  6. `docs/PULL_REQUEST_TEMPLATE.md`

The filename matches are case-insensitive.
2019-12-18 22:15:20 +01:00
..
completion.go Add tests 2019-10-31 23:43:50 +01:00
completion_test.go Assert stdout separarely from stderr in command tests 2019-12-16 15:46:42 +01:00
issue.go Add template support to issue create, pr create 2019-12-18 22:15:20 +01:00
issue_test.go Merge remote-tracking branch 'origin/master' into stderr-tests 2019-12-17 12:42:01 +01:00
pr.go Assert stdout separarely from stderr in command tests 2019-12-16 15:46:42 +01:00
pr_checkout_test.go Assert stdout separarely from stderr in command tests 2019-12-16 15:46:42 +01:00
pr_create.go Add template support to issue create, pr create 2019-12-18 22:15:20 +01:00
pr_create_test.go Assert stdout separarely from stderr in command tests 2019-12-16 15:46:42 +01:00
pr_test.go Assert stdout separarely from stderr in command tests 2019-12-16 15:46:42 +01:00
root.go Avoid long first line of gh help 2019-12-16 15:55:21 +01:00
testing.go Merge remote-tracking branch 'origin/master' into issue-update 2019-11-18 11:09:00 -08:00
title_body_survey.go Add template support to issue create, pr create 2019-12-18 22:15:20 +01:00