UNPKG

nodegit-flow

Version:

nodegit-flow contains gitflow methods that aren't include in the vanilla nodegit package

7 lines (6 loc) 291 B
"use strict"; module.exports = NodeGit => ({ create(oid, tagName, tagMessage = '', repo) { return Promise.all([NodeGit.Commit.lookup(repo, oid), repo.defaultSignature()]).then(([commit, ourSignature]) => NodeGit.Tag.create(repo, tagName, commit, ourSignature, tagMessage, 0)); } });