mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
chore: format code
This commit is contained in:
parent
16357e8041
commit
34ff87d504
182 changed files with 940 additions and 3646 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue