1
0
Fork 0
forked from forgejo/forgejo

Add an updated_at field to the API calls related to Issue's Labels.

The update date is applied to the issue's comment created to inform
about the modification of the issue's labels.
This commit is contained in:
fluzz 2023-06-06 18:36:19 +02:00
parent f061caa655
commit ea36cf80f5
5 changed files with 74 additions and 2 deletions

View file

@ -4,6 +4,10 @@
package structs
import (
"time"
)
// Label a label to an issue or a pr
// swagger:model
type Label struct {
@ -45,10 +49,18 @@ type EditLabelOption struct {
IsArchived *bool `json:"is_archived"`
}
// DeleteLabelOption options for deleting a label
type DeleteLabelsOption struct {
// swagger:strfmt date-time
Updated *time.Time `json:"updated_at"`
}
// IssueLabelsOption a collection of labels
type IssueLabelsOption struct {
// list of label IDs
Labels []int64 `json:"labels"`
// swagger:strfmt date-time
Updated *time.Time `json:"updated_at"`
}
// LabelTemplate info of a Label template