From 36a5d4c2f3b5670e5e921034cd5d25817534a6d4 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Thu, 27 Apr 2023 05:51:20 +0200 Subject: Add API for gitignore templates (#22783) This implements the [Gitignores template API of GitHub](https://docs.github.com/en/rest/gitignore?apiVersion=2022-11-28) in Gitea --- modules/structs/miscellaneous.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/structs') diff --git a/modules/structs/miscellaneous.go b/modules/structs/miscellaneous.go index 53d10a9907..bff10f95b7 100644 --- a/modules/structs/miscellaneous.go +++ b/modules/structs/miscellaneous.go @@ -72,6 +72,12 @@ type ServerVersion struct { Version string `json:"version"` } +// GitignoreTemplateInfo name and text of a gitignore template +type GitignoreTemplateInfo struct { + Name string `json:"name"` + Source string `json:"source"` +} + // LicensesListEntry is used for the API type LicensesTemplateListEntry struct { Key string `json:"key"` -- cgit v1.2.3