fix: improve logging when checking fork (#1246)
This commit is contained in:
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -314,6 +314,7 @@ function createPullRequest(inputs) {
|
||||
: baseRemote.repository;
|
||||
if (inputs.pushToFork) {
|
||||
// Check if the supplied fork is really a fork of the base
|
||||
core.info(`Checking if '${branchRepository}' is a fork of '${baseRemote.repository}'`);
|
||||
const parentRepository = yield githubHelper.getRepositoryParent(branchRepository);
|
||||
if (parentRepository != baseRemote.repository) {
|
||||
throw new Error(`Repository '${branchRepository}' is not a fork of '${baseRemote.repository}'. Unable to continue.`);
|
||||
|
Reference in New Issue
Block a user