Load issue template to new issue #323

Open
opened 2020-06-04 02:11:51 +00:00 by opyale · 3 comments
Member

Issue templates do not appear. Description text box is empty.

Issue templates do not appear. Description text box is empty.
opyale added the
🎉 Feature
label 2020-06-04 02:11:51 +00:00
Owner

We can use files API to get the issue_template.md content and load into the description with md renderer.

Things to take care of

  • check if file exists
We can use files API to get the `issue_template.md` content and load into the description with md renderer. Things to take care of - check if file exists
opyale self-assigned this 2021-04-07 21:37:28 +00:00
Author
Member

It would also be a good idea to cache these files, but the only way I can think of to make sure that the cache is still valid, would be to check for the latest commits in the corresponding directory, which is probably pretty inefficient.

@6543 Are there any other methods/APIs to retrieve file metadata without loading a bunch of commits?

It would also be a good idea to cache these files, but the only way I can think of to make sure that the cache is still valid, would be to check for the latest commits in the corresponding directory, which is probably pretty inefficient. @6543 Are there any other methods/APIs to retrieve file metadata without loading a bunch of commits?
Member
I think you are looking for https://try.gitea.io/api/swagger#/repository/repoGetIssueTemplates
qwerty287 changed title from [New] Load issue template to new issue desc to Load issue template to new issue 2022-05-04 15:15:42 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#323
No description provided.