7474 'Validation script failed to run. Please check the GitHub Action logs.\n\n' +
7575 'This might be due to missing files or configuration issues.'
7676 });
77- } else if (github.event.inputs? .pr_number) {
77+ } else if (github.event.inputs && github.event.inputs .pr_number) {
7878 await github.rest.issues.createComment({
7979 issue_number: parseInt(github.event.inputs.pr_number),
8080 owner: context.repo.owner,
@@ -159,7 +159,7 @@ jobs:
159159
160160 // Add trigger info for manual runs
161161 if (context.eventName === 'workflow_dispatch') {
162- comment += `*🔧 Manually triggered${github.event.inputs.pr_number ? ` for PR #${github.event.inputs.pr_number}` : ''}*\n\n`;
162+ comment += `*🔧 Manually triggered${github.event.inputs && github.event.inputs .pr_number ? ` for PR #${github.event.inputs.pr_number}` : ''}*\n\n`;
163163 }
164164
165165 // Post comment
@@ -171,7 +171,7 @@ jobs:
171171 repo: context.repo.repo,
172172 body: comment
173173 });
174- } else if (github.event.inputs.pr_number) {
174+ } else if (github.event.inputs && github.event.inputs .pr_number) {
175175 // Manual run with PR number
176176 await github.rest.issues.createComment({
177177 issue_number: parseInt(github.event.inputs.pr_number),
@@ -203,7 +203,7 @@ jobs:
203203 'There was an error running the style validation. Please check the GitHub Action logs.\n\n' +
204204 `Error: ${error.message}`
205205 });
206- } else if (github.event.inputs? .pr_number) {
206+ } else if (github.event.inputs && github.event.inputs .pr_number) {
207207 await github.rest.issues.createComment({
208208 issue_number: parseInt(github.event.inputs.pr_number),
209209 owner: context.repo.owner,
0 commit comments