10000 fix: improve logging when checking fork (#1246) · peter-evans/create-pull-request@171dd55 · GitHub
[go: up one dir, main page]

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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)
0