Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 31, 2025

The CI lint job was failing due to Prettier formatting violations in add_comment.cjs. Type assertion parentheses were inconsistent with the project's formatting rules.

Changes

  • Removed unnecessary parentheses around type assertions in three locations:
- comment.html_url || /** @type {any} */ (comment).url
+ comment.html_url || /** @type {any} */ comment.url

The fix aligns with Prettier's default formatting for type assertions, where parentheses around the casted expression are omitted when not needed for precedence.

Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/20628623926/job/59243146420#step:6:1

Lint

Custom agent used: debug-agentic-workflow
Debug and refine agentic workflows using gh-aw CLI tools - analyze logs, audit runs, and improve workflow performance


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Prettier formatting was updated to remove unnecessary parentheses around type assertions in add_comment.cjs. Changed `(comment).url` to `comment.url` in three locations to comply with Prettier's formatting rules.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add linting configuration for codebase Fix Prettier formatting in add_comment.cjs Dec 31, 2025
Copilot AI requested a review from pelikhan December 31, 2025 23:08
@pelikhan pelikhan marked this pull request as ready for review December 31, 2025 23:12
@pelikhan pelikhan merged commit 0cb0e9d into main Dec 31, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/add-linting-configuration branch December 31, 2025 23:12
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