Skip to content

Commit

Permalink
Merge pull request #540 from zdenektopic/bugfix/stash-api-committer
Browse files Browse the repository at this point in the history
BitBucket/Stash Server committer
  • Loading branch information
orta committed Mar 20, 2018
2 parents ba7630c + 3763449 commit eb6e7bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

## Master

* Fix `committer` field issue - missing in Stash API. [@zdenektopic][]
* Add `reset-status` command [@mxstbr][]

## 3.2.0
Expand Down
6 changes: 5 additions & 1 deletion source/platforms/bitbucket_server/BitBucketServerGit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ function bitBucketServerCommitToGitCommit(
name: bbsCommit.author.name,
date: new Date(bbsCommit.authorTimestamp).toISOString(),
},
committer: {
committer: bbsCommit.committer ? {
email: bbsCommit.committer.emailAddress,
name: bbsCommit.committer.name,
date: new Date(bbsCommit.committerTimestamp).toISOString(),
} : {
email: bbsCommit.author.emailAddress,
name: bbsCommit.author.name,
date: new Date(bbsCommit.authorTimestamp).toISOString(),
},
message: bbsCommit.message,
tree: null,
Expand Down

0 comments on commit eb6e7bb

Please sign in to comment.