Skip to content

Harden create-pr-from-issue workflow script construction - #8

Draft
wolfgangbures with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-create-pr-from-issue-job-yet-again
Draft

Harden create-pr-from-issue workflow script construction#8
wolfgangbures with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-create-pr-from-issue-job-yet-again

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

The create-pr-from-issue Actions job failed at runtime with SyntaxError: Unexpected end of input, preventing Copilot task creation from issue events.
Root cause was malformed JavaScript in the workflow’s actions/github-script step (unterminated multiline template literal).

  • Workflow script reliability

    • Replaced fragile multiline template-literal assembly of problem_statement with deterministic line-array construction and join("\n").
    • Preserves identical payload content while eliminating parser-failure risk from accidental delimiter imbalance.
  • Action runtime alignment

    • Updated actions/github-script usage to v9 in the workflow to align with current runner runtime expectations.
  • Behavioral intent preserved

    • Workflow still:
      • triggers on issue open,
      • creates a Copilot task with rich issue context/instructions,
      • posts a follow-up issue comment.
const problemStatement = [
  "A new GitHub issue was opened and should be analyzed and implemented.",
  "",
  `Repository: ${owner}/${repo}`,
  `Issue: #${issue.number}`,
  ...
].join("\n");

Copilot AI changed the title [WIP] Fix failing GitHub Actions job create-pr-from-issue Harden create-pr-from-issue workflow script construction Jun 12, 2026
Copilot AI requested a review from wolfgangbures June 12, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants