@@ -60799,15 +60799,15 @@ class GitHubBaseController {
6079960799 var _a, _b, _c, _d;
6080060800 this.action = github.context.action;
6080160801 this.actor = github.context.actor;
60802- this.branch = (_a = github.context.payload.pull_request) === null || _a === void 0 ? void 0 : _a.head.ref;
60802+ this.branch = (( _a = github.context.payload.pull_request) === null || _a === void 0 ? void 0 : _a.head.ref) || github.context .ref;
6080360803 this.isMergeEvent =
6080460804 github.context.eventName === "pull_request" &&
6080560805 ((_b = github.context.payload.pull_request) === null || _b === void 0 ? void 0 : _b.merged);
6080660806 this.pr = ((_c = github.context.payload.pull_request) === null || _c === void 0 ? void 0 : _c.number) || 0;
6080760807 this.repoOwner = github.context.repo.owner;
6080860808 this.ref = github.context.ref;
6080960809 this.repoName = github.context.repo.repo;
60810- this.sha = (_d = github.context.payload.pull_request) === null || _d === void 0 ? void 0 : _d.head.sha;
60810+ this.sha = (( _d = github.context.payload.pull_request) === null || _d === void 0 ? void 0 : _d.head.sha) || github.context .sha;
6081160811 }
6081260812 // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unused-vars
6081360813 execute() {
@@ -62253,7 +62253,7 @@ class GetTerraformPlanUseCase {
6225362253 plan = yield this.planRepository.load(repoOwner, repoName, component, stack, metadata.commitSHA);
6225462254 }
6225562255 else {
62256- // Non-merge commit, we're on the feature branch
62256+ // Non-merge commit, we're on the feature branch or workflow dispatch
6225762257 if (!commitSHA) {
6225862258 return (0, infrastructure_1.left)(new infrastructure_1.AppError.UnexpectedError("Commit is required for non-merge commits"));
6225962259 }
0 commit comments