diff --git a/index.js b/index.js index d993f28..1189d9c 100644 --- a/index.js +++ b/index.js @@ -439,6 +439,7 @@ class BitbucketScm extends Scm { const { body } = await this.breaker.runCommand(options); return { + id: hoek.reach(body, 'uuid'), url: hoek.reach(body, 'links.html.href'), name: hoek.reach(body, 'display_name'), username: hoek.reach(body, 'uuid'), diff --git a/test/index.test.js b/test/index.test.js index d035318..8be8375 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -471,6 +471,7 @@ describe('index', function () { it('resolves to correct decorated author', () => { const expected = { + id: '{4f1a9b7f-586e-4e80-b9eb-a7589b4a165f}', url: 'https://bitbucket.org/%7B4f1a9b7f-586e-4e80-b9eb-a7589b4a165f%7D/', name: 'Batman', username: '{4f1a9b7f-586e-4e80-b9eb-a7589b4a165f}', @@ -682,6 +683,7 @@ describe('index', function () { url: selfLink, message: 'testing', author: { + id: '{uuid}', url: 'https://bitbucket.org/%7Buuid%7D/', name: 'displayName', username: '{uuid}',