Skip to content

Conversation

@carter-siek
Copy link

No description provided.

@michael-siek michael-siek marked this pull request as ready for review November 20, 2025 15:29
Copilot AI review requested due to automatic review settings November 20, 2025 15:29
@michael-siek michael-siek requested a review from a team as a code owner November 20, 2025 15:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new allow_warnings input that allows users to configure the action to report accessibility errors as warnings instead of failing the build. When enabled, errors are still reported but as warnings, and the action completes successfully.

Key Changes:

  • Added allow_warnings boolean input to action configuration with default value of false
  • Modified error reporting to conditionally use core.warning() instead of core.error() when warnings are allowed
  • Updated action behavior to use core.info() instead of core.setFailed() when warnings are allowed and issues are found

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
action.yml Adds new allow_warnings input parameter with default value 'false'
src/types.ts Extends ActionInputs interface to include allowWarnings boolean field
src/run.ts Parses new input, passes it to linter, and conditionally fails or logs based on the setting
src/linter.ts Accepts allowWarnings parameter and conditionally reports issues as errors or warnings
src/run.test.ts Adds test coverage for the new allow_warnings functionality and updates existing tests to mock the new input
src/linter.test.ts Adds test for warning behavior and updates existing test to explicitly pass the new parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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