Skip to content

Commit

Permalink
feat(2892): add id into scm user (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-oksaku authored Jun 20, 2023
1 parent 3b6e773 commit 88cc02d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 2 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
Expand Down Expand Up @@ -682,6 +683,7 @@ describe('index', function () {
url: selfLink,
message: 'testing',
author: {
id: '{uuid}',
url: 'https://bitbucket.org/%7Buuid%7D/',
name: 'displayName',
username: '{uuid}',
Expand Down

0 comments on commit 88cc02d

Please sign in to comment.