Skip to content

Commit 014612a

Browse files
committed
Fix fmt
1 parent b5fa7ec commit 014612a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+558
-558
lines changed

modules/structs/activity.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ import "time"
77

88
type Activity struct {
99
// The unique identifier of the activity
10-
ID int64 `json:"id"`
10+
ID int64 `json:"id"`
1111
// The ID of the user who receives/sees this activity
1212
UserID int64 `json:"user_id"` // Receiver user
1313
// the type of action
1414
//
1515
// enum: create_repo,rename_repo,star_repo,watch_repo,commit_repo,create_issue,create_pull_request,transfer_repo,push_tag,comment_issue,merge_pull_request,close_issue,reopen_issue,close_pull_request,reopen_pull_request,delete_tag,delete_branch,mirror_sync_push,mirror_sync_create,mirror_sync_delete,approve_pull_request,reject_pull_request,comment_pull,publish_release,pull_review_dismissed,pull_request_ready_for_review,auto_merge_pull_request
16-
OpType string `json:"op_type"`
16+
OpType string `json:"op_type"`
1717
// The ID of the user who performed the action
18-
ActUserID int64 `json:"act_user_id"`
18+
ActUserID int64 `json:"act_user_id"`
1919
// The user who performed the action
20-
ActUser *User `json:"act_user"`
20+
ActUser *User `json:"act_user"`
2121
// The ID of the repository associated with the activity
22-
RepoID int64 `json:"repo_id"`
22+
RepoID int64 `json:"repo_id"`
2323
// The repository associated with the activity
24-
Repo *Repository `json:"repo"`
24+
Repo *Repository `json:"repo"`
2525
// The ID of the comment associated with the activity (if applicable)
26-
CommentID int64 `json:"comment_id"`
26+
CommentID int64 `json:"comment_id"`
2727
// The comment associated with the activity (if applicable)
28-
Comment *Comment `json:"comment"`
28+
Comment *Comment `json:"comment"`
2929
// The name of the git reference (branch/tag) associated with the activity
30-
RefName string `json:"ref_name"`
30+
RefName string `json:"ref_name"`
3131
// Whether this activity is from a private repository
32-
IsPrivate bool `json:"is_private"`
32+
IsPrivate bool `json:"is_private"`
3333
// Additional content or details about the activity
34-
Content string `json:"content"`
34+
Content string `json:"content"`
3535
// The date and time when the activity occurred
36-
Created time.Time `json:"created"`
36+
Created time.Time `json:"created"`
3737
}

modules/structs/attachment.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ import (
1111
// swagger:model
1212
type Attachment struct {
1313
// ID is the unique identifier for the attachment
14-
ID int64 `json:"id"`
14+
ID int64 `json:"id"`
1515
// Name is the filename of the attachment
16-
Name string `json:"name"`
16+
Name string `json:"name"`
1717
// Size is the file size in bytes
18-
Size int64 `json:"size"`
18+
Size int64 `json:"size"`
1919
// DownloadCount is the number of times the attachment has been downloaded
20-
DownloadCount int64 `json:"download_count"`
20+
DownloadCount int64 `json:"download_count"`
2121
// swagger:strfmt date-time
2222
// Created is the time when the attachment was uploaded
23-
Created time.Time `json:"created_at"`
23+
Created time.Time `json:"created_at"`
2424
// UUID is the unique identifier for the attachment file
25-
UUID string `json:"uuid"`
25+
UUID string `json:"uuid"`
2626
// DownloadURL is the URL to download the attachment
27-
DownloadURL string `json:"browser_download_url"`
27+
DownloadURL string `json:"browser_download_url"`
2828
}
2929

3030
// EditAttachmentOptions options for editing attachments

modules/structs/cron.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import "time"
88
// Cron represents a Cron task
99
type Cron struct {
1010
// The name of the cron task
11-
Name string `json:"name"`
11+
Name string `json:"name"`
1212
// The cron schedule expression (e.g., "0 0 * * *")
13-
Schedule string `json:"schedule"`
13+
Schedule string `json:"schedule"`
1414
// The next scheduled execution time
15-
Next time.Time `json:"next"`
15+
Next time.Time `json:"next"`
1616
// The previous execution time
17-
Prev time.Time `json:"prev"`
17+
Prev time.Time `json:"prev"`
1818
// The total number of times this cron task has been executed
19-
ExecTimes int64 `json:"exec_times"`
19+
ExecTimes int64 `json:"exec_times"`
2020
}

modules/structs/git_blob.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ package structs
66
// GitBlobResponse represents a git blob
77
type GitBlobResponse struct {
88
// The content of the git blob (may be base64 encoded)
9-
Content *string `json:"content"`
9+
Content *string `json:"content"`
1010
// The encoding used for the content (e.g., "base64")
1111
Encoding *string `json:"encoding"`
1212
// The URL to access this git blob
13-
URL string `json:"url"`
13+
URL string `json:"url"`
1414
// The SHA hash of the git blob
15-
SHA string `json:"sha"`
15+
SHA string `json:"sha"`
1616
// The size of the git blob in bytes
17-
Size int64 `json:"size"`
17+
Size int64 `json:"size"`
1818

1919
// The LFS object ID if this blob is stored in LFS
20-
LfsOid *string `json:"lfs_oid,omitempty"`
20+
LfsOid *string `json:"lfs_oid,omitempty"`
2121
// The size of the LFS object if this blob is stored in LFS
22-
LfsSize *int64 `json:"lfs_size,omitempty"`
22+
LfsSize *int64 `json:"lfs_size,omitempty"`
2323
}

modules/structs/git_hook.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ package structs
66
// GitHook represents a Git repository hook
77
type GitHook struct {
88
// Name is the name of the Git hook
9-
Name string `json:"name"`
9+
Name string `json:"name"`
1010
// IsActive indicates if the hook is active
11-
IsActive bool `json:"is_active"`
11+
IsActive bool `json:"is_active"`
1212
// Content contains the script content of the hook
13-
Content string `json:"content,omitempty"`
13+
Content string `json:"content,omitempty"`
1414
}
1515

1616
// GitHookList represents a list of Git hooks

0 commit comments

Comments
 (0)