Skip to content

Commit

Permalink
update for nodegit 0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dabutvin committed Aug 9, 2019
1 parent 41df4b2 commit bdaa1f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async function sign({
commitMessage,
oid,
[parent],
'gpgsig',
onSignature
)
return commit.toString()
Expand All @@ -43,7 +42,11 @@ async function sign({
}
const signed = await openpgp.sign(options)
const signature = signed.signature
return signature
return {
code: git.Error.CODE.OK,
field: 'gpgsig',
signedData: signature
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pgp-commit",
"version": "0.1.1",
"version": "1.0.0",
"description": "PGP signing of commits with openpgp and nodegit",
"main": "index.js",
"author": "dabutvin",
Expand All @@ -10,7 +10,7 @@
"url": "https://github.com/dabutvin/pgp-commit.git"
},
"dependencies": {
"nodegit": "^0.25.0-alpha.1",
"nodegit": "^0.25.0",
"openpgp": "^4.2.2"
}
}

0 comments on commit bdaa1f0

Please sign in to comment.