Skip to content

Commit

Permalink
fix: typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed Jan 16, 2024
1 parent fadf780 commit 7cd4d34
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion botops.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "botops demo",
"desc": "some description",
"desc": "somebotops deplo description",
"avatar": "https://avatars.githubusercontent.com/u/145313435?s=200&v=4",
"platform": "feishu",
"feishuConfig": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@inquirer/confirm": "^2.0.15",
"@inquirer/select": "^1.3.1",
"ajv": "^8.12.0",
"botops-feishu": "^0.0.7",
"botops-feishu": "latest",
"clipboardy": "^4.0.0",
"conf": "^12.0.0",
"fast-glob": "^3.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/feishuapi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "botops-feishu",
"type": "module",
"version": "0.0.7",
"version": "0.0.8",
"packageManager": "[email protected]",
"description": "botops feishu auto deploy module",
"author": "River <[email protected]>",
Expand Down
5 changes: 3 additions & 2 deletions packages/feishuapi/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export class OpenApp {
}
}

//
// "events": [
// "im.message.message_read_v1",
// "im.message.receive_v1"
Expand Down Expand Up @@ -190,7 +191,7 @@ export class OpenApp {
// "cardRequestUrl": "https://connect-ai-e.com/feishu/64af64fab84e8e000162ef66/card",
// "verificationUrl": "https://connect-ai-e.com/feishu/64af64fab84e8e000162ef66/event"
async getAppDeployInfo(appId: string) {
const scoopIds = await this.getAvailableScope(appId)
const scopeIds = await this.getAvailableScope(appId)
const cardRequestUrl = await this.botManager.showBotCallBack(appId)
const eventInfos = await this.eventManager.getEventInfo(appId)
const verificationUrl = eventInfos.verificationUrl
Expand All @@ -201,7 +202,7 @@ export class OpenApp {
events,
encryptKey,
verificationToken,
scoopIds,
scopeIds,
cardRequestUrl,
verificationUrl,
}
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export class DeployConfig {
return false

const config = await this.loadFileByPath(path)
console.log(config)
if (!config)
return false
return this.validateConfig(JSON.parse(config))
Expand Down
3 changes: 2 additions & 1 deletion src/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
import type { Argv } from 'yargs'
import ora from 'ora'
import confirm from '@inquirer/confirm'

// @ts-expect-error This is an expected error because no type definition for this package
import { getFeishuCookies } from 'botops-feishu'
import { FeishuConfigManager } from './config'
import { greenIt, isValidFeishuID, redIt } from './utils'

// @ts-expect-error This is an expected error because no type definition for this package
import { DeployConfig } from './manifest'

export const command = 'show'
Expand Down

0 comments on commit 7cd4d34

Please sign in to comment.