Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.4.0 #49

Merged
merged 27 commits into from
Mar 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b2801b0
feat(settings): warn modal on using third parties
nicobrauchtgit Mar 11, 2024
25447db
fix(OpenAI onboarding): API key input updated immediately
nicobrauchtgit Mar 11, 2024
43464c3
feat(workflows): check for logs
nicobrauchtgit Mar 11, 2024
b414171
Merge branch 'main' into dev
nicobrauchtgit Mar 11, 2024
cebe8c3
Update console-logs.yml
nicobrauchtgit Mar 11, 2024
973a1bf
Merge branch 'main' into dev
nicobrauchtgit Mar 11, 2024
969a678
Update console-logs.yml
nicobrauchtgit Mar 11, 2024
090d810
Merge branch 'main' into dev
nicobrauchtgit Mar 11, 2024
3274be7
Update console-logs.yml
nicobrauchtgit Mar 11, 2024
8fcdda4
Merge branch 'main' into dev
nicobrauchtgit Mar 11, 2024
82594b8
Update console-logs.yml
nicobrauchtgit Mar 11, 2024
ada524a
Create create-check.js
nicobrauchtgit Mar 11, 2024
16c64ad
Merge branch 'main' into dev
nicobrauchtgit Mar 11, 2024
4f55097
refactor(lang): everything into en.json
Leo310 Mar 11, 2024
9f156ee
feat: toggle to autostart
Leo310 Mar 12, 2024
25d867d
fix(autostart): also init papa when autostart set to true
Leo310 Mar 13, 2024
55dc3a7
refactor(quick-settings): added sliders
Leo310 Mar 13, 2024
f9a690f
feat(settings): indicate wrong url or api key
nicobrauchtgit Mar 13, 2024
8af9bdf
feat: install set model
nicobrauchtgit Mar 13, 2024
58713aa
feat: cancel model download
nicobrauchtgit Mar 13, 2024
4881e93
fix(onboarding):choose embed model
nicobrauchtgit Mar 13, 2024
180cdd9
refactor(chat): message spacing
Leo310 Mar 14, 2024
97f20e7
refactor(settings): now disabled functionality
Leo310 Mar 14, 2024
306fc6a
feat: new Logo
Leo310 Mar 14, 2024
9a14470
fix(settings): api key, url error bg
nicobrauchtgit Mar 14, 2024
cd5936b
manifest version up
nicobrauchtgit Mar 14, 2024
b994f83
Merge branch 'main' into dev
nicobrauchtgit Mar 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create create-check.js
  • Loading branch information
nicobrauchtgit authored Mar 11, 2024
commit ada524a81d863027e37d55d2485844141ef238ce
50 changes: 50 additions & 0 deletions .github/workflows/create-check.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
const { Octokit } = require("@octokit/rest");
const { execSync } = require("child_process");
const github = require("@actions/github");

async function createCheck() {
const token = process.env.GITHUB_TOKEN;
const octokit = new Octokit({ auth: token });
const context = github.context;

// Run grep to find console.log statements
let output;
try {
output = execSync("grep -rnw 'src/' -e 'console.log'").toString().trim();
} catch (error) {
output = ''; // No console.log statements found
}

const logLines = output.split('\n').filter(line => line.length);
const annotations = logLines.map(line => {
const [file, lineNo] = line.split(':');
return {
path: file.replace('src/', ''), // Adjust according to your repo structure
start_line: parseInt(lineNo),
end_line: parseInt(lineNo),
annotation_level: 'warning',
message: 'console.log statement found',
start_column: 1,
end_column: 1
};
});

await octokit.rest.checks.create({
owner: context.repo.owner,
repo: context.repo.repo,
name: 'Console Log Check',
head_sha: context.sha,
status: 'completed',
conclusion: logLines.length > 0 ? 'failure' : 'success',
output: {
title: 'Console Log Check',
summary: logLines.length > 0 ? 'Found console.log statements in the following locations:' : 'No console.log statements found.',
annotations: annotations
}
});
}

createCheck().catch(err => {
console.error(err);
process.exit(1);
});