caburj / odoo-dev-plugin Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
When running a command needs to stop the currently active server, stop the server without asking.
Start from a computer without odoo installed
enterprise
can in fact be considered as a custom folder.If the branch is present locally, checkout to it.
If the branch is not present locally, fetch from remote.
If the branch is not present remotely, ask the user if he want to create.
Not so easy. Need to use graphql to perform branch queries with search term.
no more active branch
pull
.Restores the given downloaded .zip file that contains a runbot build.
when running the pull request command, if the pull request is not yet present, but the branch is in the remote, open the link to create the pull request.
Suggestion: When fetching from other repos, when the branch is not found, fetch should not fail.
const { execSync } = require('child_process');
// const branch = "odoo";
const branch = "enterprise";
const gitDiffCommand = `cd /home/odoo/src/${branch} && git diff --name-only HEAD HEAD~1`;
const gitDiffOutput = execSync(gitDiffCommand, { encoding: 'utf8' });
const addonList = Array.from(new Set(gitDiffOutput.split('\n').map(line => {
const startIndex = branch === 'odoo' ? line.indexOf('/') + 1 : 0;
const endIndex = line.indexOf('/', startIndex);
return line.substring(startIndex, endIndex !== -1 ? endIndex : undefined);
})));
const noOfModulesPerLine = 5;
const output = addonList.reduce((result, addon, index) => {
const line = index % noOfModulesPerLine === 0 && index != 0 ? ',\n' : '';
const separator = index === 0 ? '' : ',';
return result + line + (line ? addon : separator + addon);
}, '');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.