import * as molt from "https://deno.land/x/molt@0.7.1/git.ts";
A sub module of molt for git operations.
Example
To update all dependencies in a module and commit the changes to git:
import { DependencyUpdate } from "https://deno.land/x/molt@{VERSION}/mod.ts";
import { commitAll } from "https://deno.land/x/molt@{VERSION}/git.ts";
const updates = await DependencyUpdate.collect("./mod.ts");
await commitAll(updates, {
groupBy: (dependency) => dependency.name,
composeCommitMessage: ({ group, version }) =>
`build(deps): bump ${group} to ${version!.to}`,
});