Skip to content

Commit b9c8bfc

Browse files
committed
chore: Update struct field types in actions.go
1 parent c02a43d commit b9c8bfc

File tree

1 file changed

+57
-57
lines changed

1 file changed

+57
-57
lines changed

internal/actions/actions.go

+57-57
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ import (
88
type WorkflowRuns struct {
99
TotalCount int `json:"total_count"`
1010
WorkflowRuns []struct {
11-
ID int `json:"id"`
12-
Name string `json:"name"`
13-
NodeID string `json:"node_id"`
14-
CheckSuiteID int `json:"check_suite_id"`
15-
CheckSuiteNodeID string `json:"check_suite_node_id"`
16-
HeadBranch string `json:"head_branch"`
17-
HeadSha string `json:"head_sha"`
18-
RunNumber int `json:"run_number"`
19-
Event string `json:"event"`
20-
Status string `json:"status"`
21-
Conclusion string `json:"conclusion"`
22-
WorkflowID int `json:"workflow_id"`
23-
URL string `json:"url"`
24-
HTMLURL string `json:"html_url"`
25-
PullRequests []interface{} `json:"pull_requests"`
26-
CreatedAt time.Time `json:"created_at"`
27-
UpdatedAt time.Time `json:"updated_at"`
11+
ID int `json:"id"`
12+
Name string `json:"name"`
13+
NodeID string `json:"node_id"`
14+
CheckSuiteID int `json:"check_suite_id"`
15+
CheckSuiteNodeID string `json:"check_suite_node_id"`
16+
HeadBranch string `json:"head_branch"`
17+
HeadSha string `json:"head_sha"`
18+
RunNumber int `json:"run_number"`
19+
Event string `json:"event"`
20+
Status string `json:"status"`
21+
Conclusion string `json:"conclusion"`
22+
WorkflowID int `json:"workflow_id"`
23+
URL string `json:"url"`
24+
HTMLURL string `json:"html_url"`
25+
PullRequests []any `json:"pull_requests"`
26+
CreatedAt time.Time `json:"created_at"`
27+
UpdatedAt time.Time `json:"updated_at"`
2828
Actor struct {
2929
Login string `json:"login"`
3030
ID int `json:"id"`
@@ -183,46 +183,46 @@ type WorkflowRuns struct {
183183
Type string `json:"type"`
184184
SiteAdmin bool `json:"site_admin"`
185185
} `json:"owner"`
186-
HTMLURL string `json:"html_url"`
187-
Description interface{} `json:"description"`
188-
Fork bool `json:"fork"`
189-
URL string `json:"url"`
190-
ForksURL string `json:"forks_url"`
191-
KeysURL string `json:"keys_url"`
192-
CollaboratorsURL string `json:"collaborators_url"`
193-
TeamsURL string `json:"teams_url"`
194-
HooksURL string `json:"hooks_url"`
195-
IssueEventsURL string `json:"issue_events_url"`
196-
EventsURL string `json:"events_url"`
197-
AssigneesURL string `json:"assignees_url"`
198-
BranchesURL string `json:"branches_url"`
199-
TagsURL string `json:"tags_url"`
200-
BlobsURL string `json:"blobs_url"`
201-
GitTagsURL string `json:"git_tags_url"`
202-
GitRefsURL string `json:"git_refs_url"`
203-
TreesURL string `json:"trees_url"`
204-
StatusesURL string `json:"statuses_url"`
205-
LanguagesURL string `json:"languages_url"`
206-
StargazersURL string `json:"stargazers_url"`
207-
ContributorsURL string `json:"contributors_url"`
208-
SubscribersURL string `json:"subscribers_url"`
209-
SubscriptionURL string `json:"subscription_url"`
210-
CommitsURL string `json:"commits_url"`
211-
GitCommitsURL string `json:"git_commits_url"`
212-
CommentsURL string `json:"comments_url"`
213-
IssueCommentURL string `json:"issue_comment_url"`
214-
ContentsURL string `json:"contents_url"`
215-
CompareURL string `json:"compare_url"`
216-
MergesURL string `json:"merges_url"`
217-
ArchiveURL string `json:"archive_url"`
218-
DownloadsURL string `json:"downloads_url"`
219-
IssuesURL string `json:"issues_url"`
220-
PullsURL string `json:"pulls_url"`
221-
MilestonesURL string `json:"milestones_url"`
222-
NotificationsURL string `json:"notifications_url"`
223-
LabelsURL string `json:"labels_url"`
224-
ReleasesURL string `json:"releases_url"`
225-
DeploymentsURL string `json:"deployments_url"`
186+
HTMLURL string `json:"html_url"`
187+
Description any `json:"description"`
188+
Fork bool `json:"fork"`
189+
URL string `json:"url"`
190+
ForksURL string `json:"forks_url"`
191+
KeysURL string `json:"keys_url"`
192+
CollaboratorsURL string `json:"collaborators_url"`
193+
TeamsURL string `json:"teams_url"`
194+
HooksURL string `json:"hooks_url"`
195+
IssueEventsURL string `json:"issue_events_url"`
196+
EventsURL string `json:"events_url"`
197+
AssigneesURL string `json:"assignees_url"`
198+
BranchesURL string `json:"branches_url"`
199+
TagsURL string `json:"tags_url"`
200+
BlobsURL string `json:"blobs_url"`
201+
GitTagsURL string `json:"git_tags_url"`
202+
GitRefsURL string `json:"git_refs_url"`
203+
TreesURL string `json:"trees_url"`
204+
StatusesURL string `json:"statuses_url"`
205+
LanguagesURL string `json:"languages_url"`
206+
StargazersURL string `json:"stargazers_url"`
207+
ContributorsURL string `json:"contributors_url"`
208+
SubscribersURL string `json:"subscribers_url"`
209+
SubscriptionURL string `json:"subscription_url"`
210+
CommitsURL string `json:"commits_url"`
211+
GitCommitsURL string `json:"git_commits_url"`
212+
CommentsURL string `json:"comments_url"`
213+
IssueCommentURL string `json:"issue_comment_url"`
214+
ContentsURL string `json:"contents_url"`
215+
CompareURL string `json:"compare_url"`
216+
MergesURL string `json:"merges_url"`
217+
ArchiveURL string `json:"archive_url"`
218+
DownloadsURL string `json:"downloads_url"`
219+
IssuesURL string `json:"issues_url"`
220+
PullsURL string `json:"pulls_url"`
221+
MilestonesURL string `json:"milestones_url"`
222+
NotificationsURL string `json:"notifications_url"`
223+
LabelsURL string `json:"labels_url"`
224+
ReleasesURL string `json:"releases_url"`
225+
DeploymentsURL string `json:"deployments_url"`
226226
} `json:"head_repository"`
227227
} `json:"workflow_runs"`
228228
}

0 commit comments

Comments
 (0)