Skip to content

Commit e7473b5

Browse files
docs: add swagger annotations to API structs
1 parent fc3ef1f commit e7473b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/structs/actions_permissions.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package structs
55

66
// ActionsPermissions represents Actions token permissions for a repository
7+
// swagger:model
78
type ActionsPermissions struct {
89
PermissionMode int `json:"permission_mode"`
910
ActionsRead bool `json:"actions_read"`
@@ -20,6 +21,7 @@ type ActionsPermissions struct {
2021
}
2122

2223
// OrgActionsPermissions represents organization-level Actions token permissions
24+
// swagger:model
2325
type OrgActionsPermissions struct {
2426
PermissionMode int `json:"permission_mode"`
2527
AllowRepoOverride bool `json:"allow_repo_override"`
@@ -37,6 +39,7 @@ type OrgActionsPermissions struct {
3739
}
3840

3941
// CrossRepoAccessRule represents a cross-repository access rule
42+
// swagger:model
4043
type CrossRepoAccessRule struct {
4144
ID int64 `json:"id"`
4245
OrgID int64 `json:"org_id"`

0 commit comments

Comments
 (0)