mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
chore: format code
This commit is contained in:
@@ -268,11 +268,7 @@ export default new Hono<{ Bindings: Env }>()
|
||||
// Verify permissions
|
||||
const userClient = new Octokit({ auth: token })
|
||||
const { data: repoData } = await userClient.repos.get({ owner, repo })
|
||||
if (
|
||||
!repoData.permissions.admin &&
|
||||
!repoData.permissions.push &&
|
||||
!repoData.permissions.maintain
|
||||
)
|
||||
if (!repoData.permissions.admin && !repoData.permissions.push && !repoData.permissions.maintain)
|
||||
throw new Error("User does not have write permissions")
|
||||
|
||||
// Get installation token
|
||||
|
||||
Reference in New Issue
Block a user