add more metadata to pinata

pull/1385/head
filip mertens 4 years ago
parent 6aad3b74ce
commit ac6fccd43a
  1. 15
      apps/remix-ide/src/app/files/dgitProvider.js

@ -206,7 +206,20 @@ class DGitProvider extends Plugin {
const commits = await this.log({ ref: 'HEAD' })
ob = {
ref: commits[0].oid,
message: commits[0].commit.message
message: commits[0].commit.message,
commits: JSON.stringify(commits.map((commit) => {
return {
oid: commit.oid,
commit: {
parent: commit.commit?.parent,
tree: commit.commit?.tree,
message: commit.commit?.message,
committer: {
timestamp: commit.commit?.committer?.timestamp
}
}
}
}))
}
} catch (e) {
ob = {

Loading…
Cancel
Save