docs: add swagger annotations to API structs

Signed-off-by: SBALAVIGNESH123 <balavignesh449@gmail.com>
pull/36113/head
SBALAVIGNESH123 2025-12-10 00:53:16 +07:00
parent e491cebc1c
commit e4a1061167
1 changed files with 3 additions and 0 deletions

@ -4,6 +4,7 @@
package structs
// ActionsPermissions represents Actions token permissions for a repository
// swagger:model
type ActionsPermissions struct {
PermissionMode int `json:"permission_mode"`
ActionsRead bool `json:"actions_read"`
@ -20,6 +21,7 @@ type ActionsPermissions struct {
}
// OrgActionsPermissions represents organization-level Actions token permissions
// swagger:model
type OrgActionsPermissions struct {
PermissionMode int `json:"permission_mode"`
AllowRepoOverride bool `json:"allow_repo_override"`
@ -37,6 +39,7 @@ type OrgActionsPermissions struct {
}
// CrossRepoAccessRule represents a cross-repository access rule
// swagger:model
type CrossRepoAccessRule struct {
ID int64 `json:"id"`
OrgID int64 `json:"org_id"`