wslyvh / tokenlog

This repo is no longer maintained. Check out the fork at General Magic
https://github.com/GeneralMagicio/tokenlog
MIT License
53 stars 22 forks source link

Template chooser bypassed when creating new issues #26

Closed kristoferlund closed 3 years ago

kristoferlund commented 3 years ago

Observed behaviour

When creating a new issue from the TokenLog interface, the user is directed to https://github.com/[repo]/issues/new.

But.. If the repository has issue templates activated that means bypassing the step where the user gets to choose template. This is the case with the TEC TokenLog SoftGov for instance.

Proposed solution

TokenLog checks if the repo has issues enabled and redirects the user to the issue template chooser instead.

Template chooser: https://github.com/[repo]/issues/new/choose

kristoferlund commented 3 years ago

@wslyvh

Could adding an item to the RepositorySettings be an option?

useIssueTemplates: true|false (default false)
wslyvh commented 3 years ago

Fixed! Great suggestion, thanks!

It's added by default. Apparently, Github handles a redirect itself if there are no templates.