mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-10 20:40:36 +00:00
big format
This commit is contained in:
parent
8729edc5e0
commit
1ea3a8eb9b
183 changed files with 2629 additions and 2497 deletions
|
|
@ -268,7 +268,11 @@ 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