Skip to content

Commit 2159845

Browse files
ibu1224imiyagam
andauthored
fix: Improve error handling in the getPrInfo method of scm-github (#246)
Co-authored-by: imiyagam <imiyagam@lycrop.co.jp>
1 parent 734e68c commit 2159845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,9 +1782,9 @@ class GithubScm extends Scm {
17821782
lookupConfig.scmRepo = config.scmRepo;
17831783
}
17841784

1785-
const scmInfo = await this.lookupScmUri(lookupConfig);
1786-
17871785
try {
1786+
const scmInfo = await this.lookupScmUri(lookupConfig);
1787+
17881788
const pullRequestInfo = await this.breaker.runCommand({
17891789
action: 'get',
17901790
scopeType: 'pulls',

0 commit comments

Comments
 (0)