loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at forgejo 75 lines 2.0 kB view raw
1// Copyright 2016 The Gogs Authors. All rights reserved. 2// Copyright 2019 The Gitea Authors. All rights reserved. 3// SPDX-License-Identifier: MIT 4 5package structs 6 7import ( 8 "time" 9) 10 11// Label a label to an issue or a pr 12// swagger:model 13type Label struct { 14 ID int64 `json:"id"` 15 Name string `json:"name"` 16 // example: false 17 Exclusive bool `json:"exclusive"` 18 // example: false 19 IsArchived bool `json:"is_archived"` 20 // example: 00aabb 21 Color string `json:"color"` 22 Description string `json:"description"` 23 URL string `json:"url"` 24} 25 26// CreateLabelOption options for creating a label 27type CreateLabelOption struct { 28 // required:true 29 Name string `json:"name" binding:"Required"` 30 // example: false 31 Exclusive bool `json:"exclusive"` 32 // required:true 33 // example: #00aabb 34 Color string `json:"color" binding:"Required"` 35 Description string `json:"description"` 36 // example: false 37 IsArchived bool `json:"is_archived"` 38} 39 40// EditLabelOption options for editing a label 41type EditLabelOption struct { 42 Name *string `json:"name"` 43 // example: false 44 Exclusive *bool `json:"exclusive"` 45 // example: #00aabb 46 Color *string `json:"color"` 47 Description *string `json:"description"` 48 // example: false 49 IsArchived *bool `json:"is_archived"` 50} 51 52// DeleteLabelOption options for deleting a label 53type DeleteLabelsOption struct { 54 // swagger:strfmt date-time 55 Updated *time.Time `json:"updated_at"` 56} 57 58// IssueLabelsOption a collection of labels 59type IssueLabelsOption struct { 60 // Labels can be a list of integers representing label IDs 61 // or a list of strings representing label names 62 Labels []any `json:"labels"` 63 // swagger:strfmt date-time 64 Updated *time.Time `json:"updated_at"` 65} 66 67// LabelTemplate info of a Label template 68type LabelTemplate struct { 69 Name string `json:"name"` 70 // example: false 71 Exclusive bool `json:"exclusive"` 72 // example: 00aabb 73 Color string `json:"color"` 74 Description string `json:"description"` 75}