cli/git
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
..
git.go Add template support to issue create, pr create 2019-12-18 22:15:20 +01:00
git_test.go Fix test assertion when running on Windows 2019-12-16 14:56:44 +01:00
remote.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00
remote_test.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00
ssh_config.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00
ssh_config_test.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00
url.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00