Skip to content

Commit

Permalink
ci: trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
jotanarciso committed Oct 21, 2024
1 parent cf99876 commit b81bcfc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9,580 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Run Azion AI Code Review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
AZION_TOKEN: ${{ secrets.AZION_TOKEN }}
run: |
node tasks/code-review.js
Expand Down
38 changes: 15 additions & 23 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"ajv-errors": "^3.0.0",
"ajv-keywords": "^5.1.0",
"assert": "^2.0.0",
"azion": "1.9.0-stage.2",
"azion": "^1.9.0-stage.2",
"bottleneck": "^2.19.5",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
Expand Down
3 changes: 0 additions & 3 deletions tasks/code-review.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-unresolved */
import { chat } from 'azion/ai';
// eslint-disable-next-line import/no-unresolved
import * as github from '@actions/github';
Expand All @@ -24,10 +23,8 @@ async function runCodeReview() {
});

let fullContent = '';
// eslint-disable-next-line no-restricted-syntax
for (const file of files) {
if (file.status !== 'removed') {
// eslint-disable-next-line no-await-in-loop
const { data: content } = await octokit.rest.repos.getContent({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
Loading

0 comments on commit b81bcfc

Please sign in to comment.