Merge pull request #1385 from ethereum/dgitmeta

add more metadata to pinata
pull/1387/head^2
bunsenstraat 3 years ago committed by GitHub
commit b2a9b3784f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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