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 1c1ea33 commit 0fc2847Copy full SHA for 0fc2847
.github/workflows/translation-check.yml
@@ -170,6 +170,9 @@ jobs:
170
with:
171
script: |
172
const issueNumber = Number(process.env.PR_NUMBER);
173
+ if (!issueNumber || isNaN(issueNumber)) {
174
+ throw new Error('PR_NUMBER not set or invalid');
175
+ }
176
const body = process.env.COMMENT_BODY || 'No comment generated.';
177
await github.rest.issues.createComment({
178
owner: context.repo.owner,
0 commit comments