diff --git a/Sources/ForgejoKit/Services/RepositoryService.swift b/Sources/ForgejoKit/Services/RepositoryService.swift index 58acd23..12e6818 100644 --- a/Sources/ForgejoKit/Services/RepositoryService.swift +++ b/Sources/ForgejoKit/Services/RepositoryService.swift @@ -58,6 +58,14 @@ public final class RepositoryService: Sendable { let archived: Bool? let description: String? let name: String? + let hasActions: Bool? + + enum CodingKeys: String, CodingKey { + case archived + case description + case name + case hasActions = "has_actions" + } } private struct CreateLabelPayload: Codable { @@ -387,13 +395,14 @@ public final class RepositoryService: Sendable { public func editRepository( owner: String, repo: String, archived: Bool? = nil, description: String? = nil, - name: String? = nil, + name: String? = nil, hasActions: Bool? = nil, ) async throws -> Repository { let url = try client.makeRepoURL(owner: owner, repo: repo, path: "") let payload = EditRepositoryPayload( archived: archived, description: description, name: name, + hasActions: hasActions, ) let jsonData = try client.encodeRequestBody(payload) return try await client.performRequest(