Skip to content

Commit 171dd55

Browse files
authored
fix: improve logging when checking fork (#1246)
1 parent 6e59b07 commit 171dd55

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ function createPullRequest(inputs) {
314314
: baseRemote.repository;
315315
if (inputs.pushToFork) {
316316
// Check if the supplied fork is really a fork of the base
317+
core.info(`Checking if '${branchRepository}' is a fork of '${baseRemote.repository}'`);
317318
const parentRepository = yield githubHelper.getRepositoryParent(branchRepository);
318319
if (parentRepository != baseRemote.repository) {
319320
throw new Error(`Repository '${branchRepository}' is not a fork of '${baseRemote.repository}'. Unable to continue.`);

src/create-pull-request.ts

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
6060
: baseRemote.repository
6161
if (inputs.pushToFork) {
6262
// Check if the supplied fork is really a fork of the base
63+
core.info(
64+
`Checking if '${branchRepository}' is a fork of '${baseRemote.repository}'`
65+
)
6366
const parentRepository = await githubHelper.getRepositoryParent(
6467
branchRepository
6568
)

0 commit comments

Comments
 (0)