Skip to content

Commit abfacf3

Browse files
s-yoshikatkyi
authored andcommitted
fix: add baseBranch to return value in getPrInfo (#60)
1 parent d68a5b8 commit abfacf3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,8 @@ class BitbucketScm extends Scm {
830830
name: `PR-${pr.id}`,
831831
ref: pr.source.branch.name,
832832
sha: pr.source.commit.hash,
833-
url: pr.links.html.href
833+
url: pr.links.html.href,
834+
baseBranch: pr.source.branch.name
834835
};
835836
});
836837
}

test/index.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,8 @@ describe('index', function () {
19091909
name: 'PR-1',
19101910
ref: 'testbranch',
19111911
sha: 'hashValue',
1912-
url: 'https://api.bitbucket.org/2.0/repositories/repoId/pullrequests/1'
1912+
url: 'https://api.bitbucket.org/2.0/repositories/repoId/pullrequests/1',
1913+
baseBranch: 'testbranch'
19131914
});
19141915
});
19151916
});

0 commit comments

Comments
 (0)