From e3dfcd9ec34d63d00271c5d560540c56043e407e Mon Sep 17 00:00:00 2001 From: wangshijun Date: Mon, 4 Aug 2025 17:19:11 +0800 Subject: [PATCH] chore: test aigne code smith --- .github/workflows/code-reviewer.yml | 15 ++++++++------- blocklets/image-bin/api/sdk.js | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 blocklets/image-bin/api/sdk.js diff --git a/.github/workflows/code-reviewer.yml b/.github/workflows/code-reviewer.yml index 715023bf..a8f9a34b 100644 --- a/.github/workflows/code-reviewer.yml +++ b/.github/workflows/code-reviewer.yml @@ -6,10 +6,9 @@ permissions: on: pull_request: + types: [opened] branches: - master - pull_request_review_comment: - types: [created] concurrency: group: ${{ github.repository }}-${{ github.event.number || github.head_ref || @@ -21,20 +20,22 @@ jobs: review: runs-on: ubuntu-latest steps: - - uses: blocklet/aigne-code-reviewer@v0.1.14 + - uses: aigne-io/aigne-codesmith@v0.1.0 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - DEBUG: "@aigne/*" + DEBUG: '@aigne/*' with: debug: true - language: "zh-CN" + language: 'zh-CN' + disable_review: false review_simple_changes: false review_comment_lgtm: false - disable_review: true path_filters: | !core/types/** !core/schema/lib/** + !core/proto/lib/** !**/types.js + !**/package.json !**/*.d.ts !**/*.lock diff --git a/blocklets/image-bin/api/sdk.js b/blocklets/image-bin/api/sdk.js new file mode 100644 index 00000000..9ac990de --- /dev/null +++ b/blocklets/image-bin/api/sdk.js @@ -0,0 +1,16 @@ +const Auth = require('@blocklet/sdk/service/auth'); + +const auth = new Auth(); + +(async () => { + let result = await auth.createAccessKey({ + remark: 'from-cli', + }); + console.log(result.data); + + result = await auth.verifyAccessKey({ + accessKeyId: result.data.accessKeySecret, + }); + + console.log(result.data); +})();