mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
commit
476e392c9d
3 changed files with 8 additions and 5 deletions
|
@ -82,7 +82,10 @@ watch([scrollY, top, y], (newValues, oldValues) => {
|
|||
items-center
|
||||
gap-16px
|
||||
overflow-x-auto
|
||||
pb="24px md:0"
|
||||
pb-274px
|
||||
mb--250px
|
||||
md="overflow-x-visible pb-0 mb-0"
|
||||
class="no-scrollbar"
|
||||
>
|
||||
<CategorySelectBox
|
||||
v-model="selectedCategoryId"
|
||||
|
|
|
@ -59,6 +59,9 @@ export default defineNuxtConfig({
|
|||
appId: 0,
|
||||
privateKey: '',
|
||||
installationId: 0,
|
||||
owner: 'web3privacy',
|
||||
baseBranch: 'main',
|
||||
repo: 'test-repo',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ import type { Project } from '~/types'
|
|||
export default defineEventHandler(async (event) => {
|
||||
const body = await readBody<{ project: Project, image?: { type: string, data: string } }>(event)
|
||||
const yamlProject = yaml.stringify(body.project)
|
||||
const { appId, privateKey, installationId } = useAppConfig().github
|
||||
const { appId, privateKey, installationId, baseBranch, owner, repo } = useRuntimeConfig().app.github
|
||||
|
||||
const id = body.project.id || body.project.name.toLowerCase().replace(/\s+/g, '-')
|
||||
|
||||
|
@ -16,9 +16,6 @@ export default defineEventHandler(async (event) => {
|
|||
await app.octokit.rest.apps.getAuthenticated()
|
||||
const octokit = await app.getInstallationOctokit(installationId)
|
||||
|
||||
const owner = 'develit-io'
|
||||
const repo = 'test-repo'
|
||||
const baseBranch = 'main'
|
||||
const newBranchName = `${id}-project-update-${Date.now()}`
|
||||
const commitMessage = `${body.project.id ? `Updating the project: ${body.project.name}` : `Initiating the creation of project: ${body.project.name}`}`
|
||||
|
||||
|
|
Loading…
Reference in a new issue