Skip to content

Commit

Permalink
chore(release): v1.0.44
Browse files Browse the repository at this point in the history
  • Loading branch information
Conventional Changelog Action committed Oct 26, 2021
1 parent 4aef61f commit 6ffe17f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## <small>1.0.44 (2021-10-26)</small>

* feat: git add multiple files at once ([4aef61f](https://github.com/simonecorsi/mawesome/commit/4aef61f))



## <small>1.0.43 (2021-10-15)</small>

* chore(release): v1.0.43 ([5e0ef82](https://github.com/simonecorsi/mawesome/commit/5e0ef82))
* feat: reduce json output size ([94635fe](https://github.com/simonecorsi/mawesome/commit/94635fe))


Expand Down Expand Up @@ -27,10 +34,3 @@



## <small>1.0.39 (2021-08-31)</small>

* chore(release): v1.0.39 ([f7a8341](https://github.com/simonecorsi/mawesome/commit/f7a8341))
* build(deps): bump path-parse from 1.0.6 to 1.0.7 ([ef137b5](https://github.com/simonecorsi/mawesome/commit/ef137b5))



17 changes: 12 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21291,7 +21291,16 @@ class Git {
}));
};
this.config = (prop, value) => this.exec(`config ${prop} "${value}"`);
this.add = (file) => this.exec(`add ${file}`);
this.add = (file) => {
let str = '';
if (Array.isArray(file)) {
file.map((f) => (str += ` ${f}`));
}
else {
str = file;
}
return this.exec(`add ${str}`);
};
this.commit = (message) => this.exec(`commit -m "${message}"`);
this.pull = () => __awaiter(this, void 0, void 0, function* () {
const args = ['pull'];
Expand Down Expand Up @@ -21515,10 +21524,8 @@ function pushNewFiles(files = []) {
if (!files.length)
return;
yield git_1.default.pull();
yield Promise.all(files.map(({ filename, data }) => __awaiter(this, void 0, void 0, function* () {
yield fsp.writeFile(filename, data);
yield git_1.default.add(filename);
})));
yield Promise.all(files.map(({ filename, data }) => fsp.writeFile(filename, data)));
yield git_1.default.add(files.map(({ filename }) => filename));
yield git_1.default.commit(`chore(updates): updated entries in files`);
yield git_1.default.push();
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mawesome",
"version": "1.0.43",
"version": "1.0.44",
"description": "Generate awesome list from user starred repositories",
"main": "index.js",
"author": "Simone Corsi<[email protected]>",
Expand Down

0 comments on commit 6ffe17f

Please sign in to comment.