Skip to content

Add GitHub Actions workflow for linting#3

Merged
ChrisTimperley merged 2 commits into
mainfrom
copilot/fix-daff5412-7fdc-40db-b803-0de0590cb050
Sep 26, 2025
Merged

Add GitHub Actions workflow for linting#3
ChrisTimperley merged 2 commits into
mainfrom
copilot/fix-daff5412-7fdc-40db-b803-0de0590cb050

Conversation

Copilot AI commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

This PR adds a comprehensive GitHub Actions workflow to automatically run linting and code quality checks on pull requests and pushes to the main branch.

What's Added

The new workflow (.github/workflows/lint.yml) includes:

  • ESLint - Catches code quality issues and enforces coding standards
  • Prettier - Ensures consistent code formatting across the project
  • TypeScript Build - Verifies there are no compilation errors

Workflow Features

  • Runs on Node.js 18 with npm caching for fast dependency installation
  • Triggered on pushes to main and all pull requests
  • Uses latest GitHub Actions (@v4) for security and reliability
  • Fails fast if any linting issues are detected

Additional Changes

Fixed existing Prettier formatting issues in src/services/github.ts to ensure the workflow passes. These were minor formatting improvements (line wrapping for long console.log statements) that align with the project's Prettier configuration.

Benefits

  • Early Issue Detection: Catches linting and formatting issues before code review
  • Consistent Code Style: Enforces the existing ESLint and Prettier rules automatically
  • Build Verification: Ensures TypeScript compilation succeeds on all changes
  • Zero Configuration: Uses the existing linting setup already configured in package.json

The workflow leverages all the linting tools already documented in the README's development section, providing automated enforcement of the project's existing code quality standards.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add a basic GitHub Actions workflow for linting</issue_title>
<issue_description>We should setup GitHub Actions with a few simple linters to help spot potential issues earlier.</issue_description>

<agent_instructions>Let's create a GitHub Actions workflow for the existing checkers/linters</agent_instructions>

Comments on the Issue (you are @copilot in this section)

Fixes #2

💡 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.

Co-authored-by: ChrisTimperley <523560+ChrisTimperley@users.noreply.github.com>
Copilot AI changed the title [WIP] Add a basic GitHub Actions workflow for linting Add GitHub Actions workflow for linting Sep 26, 2025

@ChrisTimperley ChrisTimperley left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Thanks! 🙌🏻

@ChrisTimperley
ChrisTimperley marked this pull request as ready for review September 26, 2025 22:37
@ChrisTimperley
ChrisTimperley merged commit 03108c5 into main Sep 26, 2025
2 checks passed
@ChrisTimperley
ChrisTimperley deleted the copilot/fix-daff5412-7fdc-40db-b803-0de0590cb050 branch September 26, 2025 22:37
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.

Add a basic GitHub Actions workflow for linting

2 participants