Skip to content

Commit

Permalink
fix(gha): handle page state difference messaging better and update re…
Browse files Browse the repository at this point in the history
…adme
  • Loading branch information
David Garrett authored and David Garrett committed Jul 3, 2024
1 parent 37cefa9 commit aa06fa0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ A full example of the `axe-devhub-action` can be seen at [`.github/workflows/tes

## Outputs

| name | description |
| ------------- | -------------------------------------------------- |
| `project` | Project associated with your API key |
| `axe_url` | URL for viewing axe issues detected on your commit |
| `issue_count` | Number of axe issues detected |
| name | description |
| ---------------------------- | -------------------------------------------------- |
| `project` | Project associated with your API key |
| `axe_url` | URL for viewing axe issues detected on your commit |
| `issue_count` | Number of axe issues detected |
| `created_at` | DateTime when run occurred |
| `resolved_issues` | Number of axe issues resolved |
| `difference_in_page_states` | Difference in number of page states detected |
| `page_states` | Number of page states detected |
| `issues_over_a11y_threshold` | Number of issues over a11y threshold |
5 changes: 4 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ echo "$existing_issues_count previous issues remain"

if [ "$DifferenceInPageStateCount" -gt 0 ]; then
echo "$DifferenceInPageStateCount more page states"
elif [ "$DifferenceInPageStateCount" -lt 0 ]; then
AbsoluteDifference=$(( -DifferenceInPageStateCount ))
echo "$AbsoluteDifference fewer page states"
else
echo "$DifferenceInPageStateCount fewer page states"
echo "No change in page state count"
fi

if [ "$ENABLE_A11Y_THRESHOLD" = "true" ]; then
Expand Down

0 comments on commit aa06fa0

Please sign in to comment.