We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f07672 commit f9aadd3Copy full SHA for f9aadd3
index.js
@@ -415,8 +415,15 @@ async function run() {
415
416
ref = pr.head.ref;
417
sha = pr.head.sha;
418
- commitOrg = pr.head.repo.owner.login;
419
- commitRepo = pr.head.repo.name;
+ if (pr.head.repo) {
+ commitOrg = pr.head.repo.owner.login;
420
+ commitRepo = pr.head.repo.name;
421
+ } else {
422
+ // 포크가 삭제된 경우 기본값 사용
423
+ core.warning('PR head repository not accessible, using base repository info');
424
+ commitOrg = context.repo.owner;
425
+ commitRepo = context.repo.repo;
426
+ }
427
core.debug(`The head ref is: ${pr.head.ref}`);
428
core.debug(`The head sha is: ${pr.head.sha}`);
429
core.debug(`The commit org is: ${commitOrg}`);
0 commit comments