Skip to content

Commit

Permalink
fix: add baseBranch to return value in getPrInfo (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yoshika authored and tkyi committed May 30, 2019
1 parent d68a5b8 commit abfacf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ class BitbucketScm extends Scm {
name: `PR-${pr.id}`,
ref: pr.source.branch.name,
sha: pr.source.commit.hash,
url: pr.links.html.href
url: pr.links.html.href,
baseBranch: pr.source.branch.name
};
});
}
Expand Down
3 changes: 2 additions & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,8 @@ describe('index', function () {
name: 'PR-1',
ref: 'testbranch',
sha: 'hashValue',
url: 'https://api.bitbucket.org/2.0/repositories/repoId/pullrequests/1'
url: 'https://api.bitbucket.org/2.0/repositories/repoId/pullrequests/1',
baseBranch: 'testbranch'
});
});
});
Expand Down

0 comments on commit abfacf3

Please sign in to comment.