diff options
author | JakobDev <jakobdev@gmx.de> | 2023-04-27 05:51:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 11:51:20 +0800 |
commit | 36a5d4c2f3b5670e5e921034cd5d25817534a6d4 (patch) | |
tree | 373c7b9bdfa4bdaaf1552dcbe1094723d2bd7b09 /modules | |
parent | 50133b02bd381b7ee4da1ec4b7b637d5b7552678 (diff) | |
download | gitea-36a5d4c2f3b5670e5e921034cd5d25817534a6d4.tar.gz gitea-36a5d4c2f3b5670e5e921034cd5d25817534a6d4.zip |
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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/structs/miscellaneous.go | 6 |
1 files changed, 6 insertions, 0 deletions
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"` |