-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathupdate.go
More file actions
98 lines (83 loc) · 4.21 KB
/
update.go
File metadata and controls
98 lines (83 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package model
type UpdateWrapper struct {
Data any `json:"data" yaml:"data"`
}
type UpdateDependencyList struct {
Dependencies []Dependency `json:"dependencies" yaml:"dependencies"`
DependencyFiles []string `json:"dependency_files" yaml:"dependency_files"`
}
type CreatePullRequest struct {
BaseCommitSha string `json:"base-commit-sha" yaml:"base-commit-sha"`
Dependencies []Dependency `json:"dependencies" yaml:"dependencies"`
UpdatedDependencyFiles []DependencyFile `json:"updated-dependency-files" yaml:"updated-dependency-files"`
PRTitle string `json:"pr-title" yaml:"pr-title,omitempty"`
PRBody string `json:"pr-body" yaml:"pr-body,omitempty"`
CommitMessage string `json:"commit-message" yaml:"commit-message,omitempty"`
DependencyGroup map[string]any `json:"dependency-group" yaml:"dependency-group,omitempty"`
}
type UpdatePullRequest struct {
BaseCommitSha string `json:"base-commit-sha" yaml:"base-commit-sha"`
DependencyNames []string `json:"dependency-names" yaml:"dependency-names"`
UpdatedDependencyFiles []DependencyFile `json:"updated-dependency-files" yaml:"updated-dependency-files"`
PRTitle string `json:"pr-title" yaml:"pr-title,omitempty"`
PRBody string `json:"pr-body" yaml:"pr-body,omitempty"`
CommitMessage string `json:"commit-message" yaml:"commit-message,omitempty"`
DependencyGroup map[string]any `json:"dependency-group" yaml:"dependency-group,omitempty"`
}
type DependencySubmissionRequest struct {
Version int8 `json:"version" yaml:"version"`
Sha string `json:"sha" yaml:"sha"`
Ref string `json:"ref" yaml:"ref"`
Job map[string]any `json:"job" yaml:"job"`
Detector map[string]any `json:"detector" yaml:"detector"`
Manifests map[string]any `json:"manifests" yaml:"manifests"`
Metadata map[string]string `json:"metadata" yaml:"metadata"`
}
type DependencyFile struct {
Content string `json:"content" yaml:"content"`
ContentEncoding string `json:"content_encoding" yaml:"content_encoding"`
Deleted bool `json:"deleted" yaml:"deleted"`
Directory string `json:"directory" yaml:"directory"`
Name string `json:"name" yaml:"name"`
Operation string `json:"operation" yaml:"operation"`
SupportFile bool `json:"support_file" yaml:"support_file"`
SymlinkTarget string `json:"symlink_target,omitempty" yaml:"symlink_target,omitempty"`
Type string `json:"type" yaml:"type"`
Mode string `json:"mode" yaml:"mode,omitempty"`
}
type ClosePullRequest struct {
DependencyNames []string `json:"dependency-names" yaml:"dependency-names"`
Reason string `json:"reason" yaml:"reason"`
}
type MarkAsProcessed struct {
BaseCommitSha string `json:"base-commit-sha" yaml:"base-commit-sha"`
}
type RecordEcosystemVersions struct {
EcosystemVersions map[string]any `json:"ecosystem_versions" yaml:"ecosystem_versions"`
}
type RecordEcosystemMeta struct {
Ecosystem Ecosystem `json:"ecosystem" yaml:"ecosystem"`
}
type RecordUpdateJobError struct {
ErrorType string `json:"error-type" yaml:"error-type"`
ErrorDetails map[string]any `json:"error-details" yaml:"error-details"`
}
type RecordUpdateJobUnknownError struct {
ErrorType string `json:"error-type" yaml:"error-type"`
ErrorDetails map[string]any `json:"error-details" yaml:"error-details"`
}
type IncrementMetric struct {
Metric string `json:"metric" yaml:"metric"`
Tags map[string]any `json:"tags" yaml:"tags"`
}
type Ecosystem struct {
Name string `json:"name" yaml:"name"`
PackageManager VersionManager `json:"package_manager,omitempty" yaml:"package_manager,omitempty"`
Language VersionManager `json:"language,omitempty" yaml:"language,omitempty"`
}
type VersionManager struct {
Name string `json:"name" yaml:"name"`
Version string `json:"version" yaml:"version"`
RawVersion string `json:"raw_version" yaml:"raw_version"`
Requirement map[string]any `json:"requirement,omitempty" yaml:"requirement,omitempty"`
}