Skip to content

Commit

Permalink
Note annotation limits in Problem Matchers documentation (actions#734)
Browse files Browse the repository at this point in the history
* Update problem-matchers.md

* Update docs/problem-matchers.md

Fixup text

Co-authored-by: Konrad Pabjan <[email protected]>

Co-authored-by: Konrad Pabjan <[email protected]>
  • Loading branch information
electronjoe and konradpabjan authored Apr 6, 2021
1 parent fc00528 commit 418978c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/problem-matchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Problem Matchers are a way to scan the output of actions for a specified regex pattern and surface that information prominently in the UI. Both [GitHub Annotations](https://developer.github.com/v3/checks/runs/#annotations-object-1) and log file decorations are created when a match is detected.

## Limitations

Currently, GitHub Actions limit the annotation count in a workflow run.

- 10 warning annotations and 10 error annotations per step
- 50 annotations per job (sum of annotations from all the steps)
- 50 annotations per run (separate from the job annotations, these annotations aren’t created by users)

If your workflow may exceed these annotation counts, consider filtering of the log messages which the Problem Matcher is exposed to (e.g. by PR touched files, lines, or other).

## Single Line Matchers

Let's consider the ESLint compact output:
Expand Down

0 comments on commit 418978c

Please sign in to comment.