Skip to content

Apply Prettier formatting to add_labels.cjs - #7639

Merged
pelikhan merged 2 commits into
jsweep/clean-add-labels-cjs-b57fd79e35bd24c5from
copilot/sub-pr-7634
Dec 25, 2025
Merged

Apply Prettier formatting to add_labels.cjs#7639
pelikhan merged 2 commits into
jsweep/clean-add-labels-cjs-b57fd79e35bd24c5from
copilot/sub-pr-7634

Conversation

Copilot AI commented Dec 25, 2025

Copy link
Copy Markdown
Contributor

Applied standard Prettier formatting rules to pkg/workflow/js/add_labels.cjs after initial refactoring.

Changes:

  • Reformatted optional chaining to explicit null checks for consistency
  • Adjusted multi-line core.summary.addRaw() call formatting
  • Normalized error handling pattern to match project style

Before/After:

// Before
if (labelsResult.error?.includes("No valid labels")) {
  await core.summary.addRaw(`...`).write();
}

// After  
if (labelsResult.error && labelsResult.error.includes("No valid labels")) {
  await core.summary
    .addRaw(
      `...`
    )
    .write();
}

No logic changes - purely formatting alignment with .prettierrc.json configuration.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Clean up add_labels.cjs with modern patterns Apply Prettier formatting to add_labels.cjs Dec 25, 2025
Copilot AI requested a review from pelikhan December 25, 2025 15:26
@pelikhan
pelikhan marked this pull request as ready for review December 25, 2025 17:21
@pelikhan
pelikhan merged commit 0c624b3 into jsweep/clean-add-labels-cjs-b57fd79e35bd24c5 Dec 25, 2025
@pelikhan
pelikhan deleted the copilot/sub-pr-7634 branch December 25, 2025 17:21
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