k0shk0sh / FastHub

FastHub the ultimate GitHub client for Android.
GNU General Public License v3.0
5.71k stars 931 forks source link

[FR] Use issue templates when opening issues with FastHub #2852

Closed erip closed 4 years ago

erip commented 4 years ago

Is your feature request related to a problem? Please describe.

Issues created using FastHub are occasionally closed because the app ignores issue templates.

Describe the solution you'd like

The client should follow prompts like the GitHub web app does as drawn from .github/

Describe alternatives you've considered

N/A

Additional context

N/A

yakov116 commented 4 years ago

@erip is there an API for that?

erip commented 4 years ago

@yakov116 not directly, no. You could use the content API with path .github/ISSUE_TEMPLATE and see the files listed there to construct the appropriate views; if nothing exists under that directory, free text issues as a fallback seems most reasonable.

e.g., see https://api.github.com/repos/k0shk0sh/FastHub/contents/.github/ISSUE_TEMPLATE vs https://api.github.com/repos/k0shk0sh/KAM/contents/.github/ISSUE_TEMPLATE

k0shk0sh commented 4 years ago

It has been done in v5 :)